I have set up my first project using FluentNHibernate. When I tried to get a list of records from a single table, I got an exception which says:
We a mant-to-many relationship modeled in开发者_Go百科 the database (with a bridge table) between Student and Professor, but in our entites we want to model it as a one-to-many relationship i.e. a Stu
FluentConfigurationException was unhandled An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
I\'m looking for an example of how I would/should use the SqlUpdate, SqlDelete, and SqlInsert parts of Fluent NHibernate in my mappings.
i have the following scenario public abstract class BaseClass { public virtual int Id {get; set}; public virtual string Name {get; set;}
Edit I have the answer and will post it up tomorrow. I have a class that appears to be using the parent primary key column instead of it\'s own primary key column.
I\'ve got to columns in a legacy schema, that I\'d like to map as a component (aka value type). The reference to the component/value type is of private scope.
I\'m working on a project where we are using fluent nhibernate and perform queries on our repository for entities. Often we write queries like this:
I have a standard one-to-many relationship between two objects, Person and Order.This is represented in my object model as a collection of orders on the Person.This manife开发者_如何学JAVAsts itself i
We want to use NHibernate as our persistence layer in our application. We are also using Fluent NHibernate for the mappings.