select * from student where [id] in (1,2,3,4)怎么写成linq
select * from student where [id] in (1,2,3,4)怎么写成linq
------解决方案--------------------linq里没有in 吧,用Contains.
List<int> ids = new List<int>(){1,2,3,4};
var query = from s in student
where ids.Contains(s.id)
select s;