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));
int[] Ids = {1 ,2 ,3};var Result = test.Where(w => a.Contains(w.f_id));