以下异常流产:
LINQ to Entities不识别方法'Boolean Contains(Int32)',并且该方法无法转换为存储表达式。
在尝试执行以下查询时。
我该如何使用学生ID列表过滤查询?
LINQ to Entities不识别方法'Boolean Contains(Int32)',并且该方法无法转换为存储表达式。
在尝试执行以下查询时。
List<int> studentIDs = Common.getFilterStudents();
var query = from a in studentTable
where studentIDs.Contains(a.StudentID)
select a;
我该如何使用学生ID列表过滤查询?
studentIDs
的类型是List<int>
吗? - Sergey Berezovskiy