下面的异常飞行
LINQ to Entities 无法识别“Boolean Contains(Int32)”方法,并且该方法无法转换为存储表达式。
在尝试执行以下查询时
List<int> studentIDs = Common.getFilterStudents();
var query = from a in studentTable
where studentIDs.Contains(a.StudentID)
select a;
如何使用 studentIDs 列表过滤查询?