我有2字段FromDate和ToDate在数据库中。我想要结果LINQ查询具有2个日期的月份差异与某些动态值的记录。Linq查询与2个日期之间的月份差异
其实我有一个数据库表作为EmploymentHistory与字段NameOfCompany作为nvarchar(50),ProfileID作为bigint,EmoploymentFrom作为日期时间,EmploymentUpto作为日期时间,IsCurrentEmployer作为位。
ProfileID是Profile 的引用密钥我想根据月经验生成所有配置文件的查询。
如果IsCurrentEmployer为true,那么EmploymentUpto为null。
'EntityFunctions'现在已经被'DbFunctions' – Flexicoder 2016-09-19 09:31:06