【发布时间】:2010-11-08 07:01:51
【问题描述】:
string[] userIds = userList.Split(','); // is an array of integers
IList<User> users = (from user in this.repository.Users
where userIds.Contains(user.Id.ToString())
select user).ToList();
上面的查询给出了
System.NotSupportedException: LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression
我能做什么?
【问题讨论】:
标签: linq-to-entities