NHibernate explicit fluent column mapping
问题 I have a set of fluent object mappings that looks like this: public class UserMap : ClassMap<User> { public UserMap() { Map(x => x.Id); Map(x => x.Status); } } public class SpecialUserMap : SubClassMap<SpecialUser> { public SpecialUserMap() { Map(x => x.Property); } } public class DirectoryMap : ClassMap<Directory> { public DirectoryMap { Map(x => x.Id); HasMany(x => x.SpecialUsers).Where("Status = 0"); } } User is a join table, which SpecialUser joins against to get things like status.