I\'ve got an application that keeps track of (for the sake of an example) what 开发者_JS百科drinks are available at a given restaurant.My domain model looks like:
In FluentNHibernate when should I use ClassMap and when IAutoMappingOverride<Entity> for my EntityMap classes.
I have the following Person and Gender classes (I don\'t really, but the example is simplified to get my point across), using NHibernate (Fluent NHibernate) I want to map the Database Column \"GenderI
I have a WPF application running with VS2010 .Net3.5 using Nhibernate with FluentNHibernate + SQLite, and all works fine.
Trying to use FNH to map a view - FNH insists on having a Id property mapped.However not all of my vie开发者_如何学运维ws have a unique identifing column.
I have a entity project which holds about 30 classes and this project is used in several web applications. One application maybe uses all the 30 classes but another one only uses 3 classes.
I need a way to determine the name of the column used by NHibernate to join one-to-many collections from the collected entity\'s type.
here is code, how I am calling Stored procedure ISession session = NHibernateHelper.GetCurrentSession();
I am using Fluent NHibernate AutoMappings to map my entities, including a few component objects. One of the component objects includes a property like the following:
I have 2 tables having many to many relation and hence there is junction table to resolve this like... Table1, Table2 and Junction table na开发者_如何学编程me Table1Table2 having Foreign key of Table