标签:引用 转换 ble HERE amp entity create ola ons
报错原因是因为SQL语句不识别C#的计算时间的方法
解决办法:
1,引用EntityFramwork nuget命令: Install-Package EntityFramework
2,IQueryable<Biz_Employee> employeeExistViolationQueryable = uow.Biz_Employee.GetAll().Where(p => !p.Invalid && p.IDNumber == employee.IDNumber && (DbFunctions.AddMonths(p.CreateDate,p.BanMonths)>dtNow));
3,这样写,就可以转换为SQL语句的 DATEADD((month,参数1,参数2))了
标签:引用 转换 ble HERE amp entity create ola ons
原文地址:https://www.cnblogs.com/wqw553639736/p/12096795.html