标签: nhibernate datetime hql
我需要hql查询来检索datetime属性中具有空值的对象
像这样的东西
来自用户u,其中u.LastLogon为空
LastLogon是一个DateTime?属性,MS Sql表中的日期时间
你怎么能这样做?
答案 0 :(得分:0)
from Users u where u.LastLogon is null应该有用。
from Users u where u.LastLogon is null