sql 中的in(xx,yy,zz) 在lamda表达式中如何表示?多谢高手指点
通过筛选的方式 间接实现 如下:
string[] list = new string[] {"a","b","c","xx","yy","zz" };string[] filter = {"xx","yy","zz"};var result = list.Where(p => filter.Contains(p));