Linq实现SQL in

比如 Id in (1,2,3)

int[] a={1,2,3};

list.Where(x=>a.Contains(x.Id))
posted @ 2017-04-17 16:02  Cherry的冬天  阅读(204)  评论(0)    收藏  举报