LINQ to Entities 不识别方法“Int32 ToInt32(System.String) 或 “Int32 Parse(System.String)”

来源:互联网 发布:backbone.js 教程 编辑:程序博客网 时间:2024/05/16 00:26

LINQ to Entities 不识别方法“Int32 ToInt32(System.String) 或 “Int32 Parse(System.String)”

from record in Items
let a = Convert.ToInt32(record.Item_id)
where a > 1000000
orderby a descending
select record

使用let即可

0 0
原创粉丝点击