NHibernate: Select one to Many Left Join - Take X latest from Parent
问题 I have the following objects: Parent public virtual Guid Id { get; set; } public virtual DateTime TimeStamp { get; set; } public virtual IList<Child> Childs { get; set; } Child public virtual Guid Id { get; set; } public virtual string Name { get; set; } I use Fluent to Map One To Many as follows: .Override<Parent>(obj =>obj.HasMany(x => x.Childs) .Cascade.All() .Not.Inverse() .Not.KeyNullable() .Not.KeyUpdate()) I need to get up to all Parent with Childs between dates order by TimeStamp. I