<分区>
下面的异常发生了
LINQ to Entities does not recognize the method 'Boolean Contains(Int32)' method, and this method cannot be translated into a store expression.
在尝试执行以下查询时
List<int> studentIDs = Common.getFilterStudents();
var query = from a in studentTable
where studentIDs.Contains(a.StudentID)
select a;
如何使用学生 ID 列表过滤查询?