Nhibernate 在where条件中使用联接列
我与NHibernate进行休耕HQL:Nhibernate 在where条件中使用联接列,nhibernate,join,hql,left-join,where-clause,Nhibernate,Join,Hql,Left Join,Where Clause,我与NHibernate进行休耕HQL: from Contact a where IsInternal = 0 这给了我一个休闲sql(来自NHProfiler): 现在我想用扩展where条件 ... and (contact0_1.Id is not null or contact0_2_.Id is not null) 现在的问题是,如何访问HQL中的联接表 最好的问候,托马斯,如果字段为空,那么引用的对象为空。因此: 其中IsInternal=0且(a.个人不为空或a.公司不
from Contact a where IsInternal = 0
这给了我一个休闲sql(来自NHProfiler):
现在我想用扩展where条件
... and (contact0_1.Id is not null or contact0_2_.Id is not null)
现在的问题是,如何访问HQL中的联接表
最好的问候,托马斯,如果字段为空,那么引用的对象为空。因此:
其中IsInternal=0且(a.个人不为空或a.公司不为空)
... and (contact0_1.Id is not null or contact0_2_.Id is not null)