//首先,在程序中接受一个数组
例如:int[] s=[1,2,3];
//在Lamda表达式中使用如下:
db.userinfo.where(u=>s.Contains(u.id));
//等同于sql语句:
select * from userinfo where id in (1,2,3)
//首先,在程序中接受一个数组
例如:int[] s=[1,2,3];
//在Lamda表达式中使用如下:
db.userinfo.where(u=>s.Contains(u.id));
//等同于sql语句:
select * from userinfo where id in (1,2,3)