nhibernate: select parents and newest child
问题 I have the following entities public class Vehicle { public virtual string InternalNumber { get; set; } public virtual IList<VehicleDriverHistory> DriverHistory { get; set; } } public class VehicleDriverHistory : HistoryEntity { public virtual Vehicle Vehicle { get; set; } public virtual DriverPerson Driver { get; set; } public virtual DateTime Date { get; set; } } Now I need to select every Vehicle and, if present, the newest VehicleDriverHistory-Entry according to "Date". But I'm kinda