NHibernate JoinAlias query with null test not working
问题 I'm getting some unexpected behaviour with a JoinAlias QueryOver in NHibernate. My entity essentially looks like this: public class Field { public virtual long Id { get; protected set; } public virtual Field Parent { get; protected set; } public virtual FieldType Type { get; protected set; } public virtual string Value { get; protected set; } ...(Ctors etc } My mapping is such: public class FieldMap : ClassMap<Field> { public FieldMap() { Id(x => x.Id) .GeneratedBy.Native(); References(x => x