C# linq to entity中字段转化为指定类型 lambda 字段类型转换 解决"LINQ to Entities does not recognize the method 'System.String ToString(Int32)' method, and this method cannot be translated into a store expression."
JobStatus= SqlFunctions.StringConvert((double)e.JobStatus)
日期转换指定格式
PFBeginMonth = SqlFunctions.DateName("yyyy", e.SS_EmpInfo.PFBeginMonth)+"-"+ SqlFunctions.DateName("MM", e.SS_EmpInfo.PFBeginMonth),
微信号:jamesworkshop 学习QQ群:364976091
浙公网安备 33010602011771号