Nhibernate Hql查询检索DateTime为空

时间:2010-06-30 16:50:26

标签: nhibernate datetime hql

我需要hql查询来检索datetime属性中具有空值的对象

像这样的东西

来自用户u,其中u.LastLogon为空

LastLogon是一个DateTime?属性,MS Sql表中的日期时间

你怎么能这样做?

1 个答案:

答案 0 :(得分:0)

from Users u where u.LastLogon is null应该有用。