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

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即可

你可能感兴趣的:(ef,LINQ,不识别)