标签:NotSupportedException

Nhibernate LINQ DateTime.AddDay 异常 NotSupportedException

在C# Nhibernate开发中使用了linq 查询,我需要对比2个DateTime类型的时间,其中用到DateTime.AddDay(),代码如下: <code>var patients = from c in session.Query<Patient>() where c.DateAdded.AddDays(1) < c……