do people build there own versions of all this? or is there a place to get all this prebuilt?
I got the latest FluentNhibernate which has NHibernate but no Linq.... but I don't really want to setup a ruby rake build system etc etc unless I really really have to! Prefer to just get all the binaries I need.
...
For a (very) long time I've been looking for an example on how to correctly implement a one-to-one mapping with Fluent NHibernate.
Most resources I find say
I think you mean a many-to-one
However no one actually gives an example on how to correctly implement the one-to-one relation.
So, could you give an one-to-one mapping examp...
this class is from http://wiki.fluentnhibernate.org/Getting_started
it has some logic in it and I think this violates the Single Responsibility Principle, how do you think, how would you resolve this ?
Another thing that bothers me is why in nhibernate always it is being used IList and not IEnumerable which has less functionality ?
pub...
I'm trying to map a collection of enum values with Fluent NHibernate.
IList<EnumType> lst;
I can't find any documentation about it but I'm quite sure it should be possible.
I had no problem at all with mapping a collection of Entities.
Thanks,
Leonardo
...
I have created 3 tables in my database and put data into them. The 3 tables all have foreign keys joining them together. Below are the table classes and there mappings. When I run the query listed at the end I get IList<> of the objects and they have the data from all 3 tables. However, my HQL query is only from the top most table. ...
What I need to do is automap subclasses of my abstract page class. I need to find them in a list of assemblies that I get a runtime (at the initialization stage). I don't have any reference to the assemblies from the assembly of my mappings.
My page class looks something like this:
public abstract class Page : EntityBase
{
public ...
I've searched around for a solution as best I can, but it seems I'm at a loss somewhere. This is my first dive into Fluent NHibernate & NHibernate.
The short version (which will still be long) is that I have a database that has tables User, Role, UserRoles. The relationship b/t them should be fairly intuitive...A user can be assigned mu...
I need some really good blogs to follow ASP.NET MVC, Fluent NHibernate, and Spark View Engine.
I would like to follow some good bloggers in these areas.
...
With Fluent mapping it was easy, the order of definition is the order of schema creation. With auto mapping it is different. Does anyone know how to set the order of generated columns?
Thanks.
...
Is it possible to get a list of all related objects from a given entity, which I would like to delete?
In the mapping I defined the cascading, that works well. But I would like to present the user which entities are currently connected to that entity so they might want to keep the entity.
For example I have an entity event which has pa...
I've been using WinForms databinding to display data from a database mapped with Fluent NHibernate, and that's been working great.
For example, I can just set a DataGridView's DataSource property from an entity's IList property, and voila - there's all the data!
But now I need to start adding and saving new data rows, and that's not g...
I am using Fluent NHibernate and would like to use linq to query my database is this possible ?
...
I have no control over the db schema and need to map two database columns to a single property in my .Net class. The db engine is DB2
The database has columns AUTH_DT of type DATE and AUTH_TM of type TIME. The relevant code follows:
public class Authorisation{
...
public virtual DateTime TransactionDate { get; set; }
...
}
...
Hello.
Im trying to insert object into SQLite InMembory database as follow:
private void button1_Click(object sender, EventArgs e)
{
var sessionFactory = CreateSessionFactory();
using (var session = sessionFactory.OpenSession())
{
Person p = new Person { Age = 25, FirstName = "Dariusz", LastName =...
I have an object with a property that I'd like to map as Serializable. NHibernate supports this:
<property name="FeeGenerator" column="FeeGenerator" type="Serializable" />
Is there a way to accomplish this in Fluent NHibernate?
There's an SO question (http://stackoverflow.com/questions/2000798/map-to-serializable-in-fluent-nhiberna...
Hi All
I am looking for the best way to delete all schema changes(all tables really) made when unit testing.
I am using fluent to map my entities and create the schema in the Setup of my tests. I want to be able to delete the schema changes at the end of the tests in the Teardown.
I am using nhibernates SchemaExport to generate the sc...
Hi, I am pretty new to S#harp architecture and fluent nhibernate. I was trying to build a sample solution using the template.
MappingIntegrationTest fails for me when I try to run it for the following domains
public class Component
{
public virtual string comp { get; set; }
}
public class Parent : Entity
{
public virtual string Ty...
I'm trying to insert around 16000 records into a single table. Because this is very slow, I'd like to batch insert them. However, I'm always getting a timeout error when I attempt to do this. So I have two questions:
What is the best way to speed up inserts?
How do I increase the timeout value of the connection?
...
I am having a bit of trouble figuring out how to make a specific design in fluent nHibernate. I have a small workflow prototype with two aspects to it. First, you can design a workflow, that has a collection of 'phases' and a phase has a collection of 'Tasks'. I have this part loading and saving using nHibernate. Second part, these wor...
I am going to have a application configuration table, something like this.
public virtual int id { get; set; }
public virtual bool CommentsActive { get; set; }
public virtual bool UploadByPublicUser { get; set; }
public virtual bool UploadPicturesByPublicUser { get; set; }
Now this table only gone have one row and it's...