2009-01-12 44 views

回答

2

看看這個帖子約using sql functions in nhibernate從ayende。

編輯我曾與在配置文件中像這樣的成功:

<property name="query.substitutions"> 
    true 1, false 0, yes 'Y', no 'N',getdate=getdate 
</property> 

通知GETDATE GETDATE =,不知道如何推薦這卻是使用SQL函數:)。

更多關於這個:http://www.hibernate.org/hib_docs/nhibernate/html/session-configuration.html,搜索query.substitutions。

+0

謝謝, 我會盡快檢查它 – 2009-01-12 15:31:17