from item in entity.List where powerStr[(int)item.Qxnm] == '1' select item
其中powerStr是字符串,Qxnm是一个int的属性 ,运行时报错:
LINQ to Entities 不识别方法,因此该方法无法转换为存储表达式。
我这条语句该怎么改??求教.........
...全文
24611打赏收藏
【求教】关于linq查询的变量如何提前转换好
这是我的查询语句 from item in entity.List where powerStr[(int)item.Qxnm] == '1' select item 其中powerStr是字符串,Qxnm是一个int的属性 ,运行时报错: LINQ to Entities 不识别方法,因此该方法无法转换为存储表达式。 我这条语句该怎么改??求教.........