0
在Nhibernate 3.2中創建Linq表達式時,是否有辦法將sysdate作爲生成的sql的一部分傳遞?在Nhibernate中使用Oracle sysdate Linq
例如,像這樣
from c in _session.Query<Question>
where Question.EDate.Date = sysdate
或
from c in _session.Query<Question>
where Question.Edate.Date == trunc(sysdate)
產生像select語句:只有通過擴展LINQ提供
select * from question where trunc(EDate) == trunc(sysdate)