Fluent-Nhibernate References and PropertyRef Doing a Select With Lazy Load
问题 I am using PropertyRef for one of my References properties. With LazyLoad() it still does a Select and loads the User entity, even though I never "hit" the SalesPerson property. Order Mapping Id(x => x.Id).GeneratedBy.Native(); References(x => x.SalesPerson) .LazyLoad() .PropertyRef(x => x.Username) .Column("rsm"); Map(x => x.Title); Order Class public class Order : BaseEntity { ... public virtual User SalesPerson { get; set; } public virtual string Title { get; set; } ... } User Mapping Id(x