0
我一直在使用DateAdd
函數編寫的SQL查詢NHibernate的查詢,則需要轉換爲NHibernate的查詢轉換SQL查詢來有DateAdd函數
select * from Compliance where (PauseDate is not null and BreachDate > PauseDate and
BreachDate < DateAdd(Hour," +2 +",PauseDate) or (PauseDate is null and BreachDate >
GETDATE() and BreachDate < "+jeopardyTime+"))
你看着QueryOver? –
jle
2013-04-30 10:36:26
什麼是'「+2」'和'「+ jeopardyTime +」'? – devio 2013-04-30 10:45:18