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的冬天  阅读(186)  评论(0编辑  收藏  举报