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