//首先,在程序中接受一个数组
例如:int[] s=[1,2,3];
//在Lamda表达式中使用如下:
db.userinfo.where(u=>s.Contains(u.id));
//等同于sql语句:
select * from userinfo where id in (1,2,3)
原文链接:https://blog.csdn.net/qq_39569480/article/details/105249292
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交