Flunet Nhibernate all-delete-orphan not working like expected
问题 I have following domain classes: public class News: EntityBase { public virtual DateTime CreationDate { get; set; } public virtual IList<DomainNameToNews> DomainNameToNews { get; set; } public News() { DomainNameToNews=new List<DomainNameToNews>(); } } public class DomainNameToNews : EntityBase { public virtual DomainName DomainName { get; set; } public virtual News News { get; set; } } Mapping: public class NewsMap : ClassMap<News> { public NewsMap() { Id(x => x.Id).GeneratedBy.Identity();