首页 > 其他 > 详细

LINQ to Entities does not recognize the method 'System.DateTime ToDateTime(System.String)' method

时间:2017-01-04 09:28:44      阅读:500      评论:0      收藏:0      [点我收藏+]

System.Data.Objects.EntityFunctions和System.Data.Objects.SqlClient.SqlFunctions中的方法进行比较,如下

where System.Data.Objects.SqlClient.SqlFunctions.DateDiff("s",DateTime.Now,u.Time)>0

where System.Data.Objects.EntityFunctions.DiffSeconds(DateTime.Now,u.Time)>0

 

LINQ to Entities does not recognize the method 'System.DateTime ToDateTime(System.String)' method

原文:http://www.cnblogs.com/zcm123/p/6247281.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!