日期:2014-05-18  浏览次数:20383 次

linq in问题
sql语句 select * from test where f_id in(1,2,3) 如何用linq实现,谢谢

------解决方案--------------------
C# code

int[] Ids = {1 ,2 ,3};
var Result = test.Where(w => a.Contains(w.f_id));