错误信息:
System.NotSupportedException:“LINQ to Entities does not recognize the method 'System.Guid Parse(System.String)' method, and this method cannot be translated into a store expression.”
Linq to Entities 不支持 Guid.Parse() 方法
原因分析:
在Linq语句中使用 Guid.Parse() 方法,该方法暂不被 Linq to Entity 支持。
解决办法:
删除该方法的使用。尝试直接使用字符串,或改变字符串类型属性为GUID类型。
博客指出Linq to Entities出现错误,不支持Guid.Parse()方法。原因是在Linq语句中使用了该方法,而它暂不被Linq to Entity支持。解决办法是删除该方法的使用,可尝试直接用字符串,或把字符串类型属性改为GUID类型。
2万+

被折叠的 条评论
为什么被折叠?



