I\'ve been been experiencing a weird behaviour (at least to me) with ISession.Refresh(). I\'ve got an entity with a lazy-loaded collection of children, and a read-only property that hits this collect
Is any way, how to create two classes, which will be referenced both way and will use only one FK? This interest me in One-to-One as like as One-to-Many cases.
I have two entities represented by two tables in the database, joined by a linking table with a unique constraint on each of the two foreign keys. (See this question for details). The linking table al
I am doing something stupid and I just don\'t see it. I just want the class Party to have a set of PartyNames, using the mapping below, and am unable to insert a PartyName with an FK constraint viol
I have a mapping in NHibernate like this: <?xml version=\"1.0\" encoding=\"utf-8\"?> <hibernate-mapping namespace=\"News.BusinessEntity\" assembly=\"News.BusinessEntity\" xmlns=\"urn:nhiber
Is there any way to predict what alias will be generated for the table when nhibernate is generating sql?
I have an inheritance public abstract class UserEntity : Entity { public virtual int Id { get; pr开发者_StackOverflowotected set; }
Basically I have a simple base class: public abstract class BasePoco { public virtual Guid Id { get; protected set; }
I have a legacy database that uses a table per class hierarchy inheritance strategy that uses two database columns as discriminators, usetype and formattype. UseType gives you the top level, formattyp
I am facing a problem when trying to update a child item in Parent class public class Parent { public virtual int Id { get; set; }