link中如何跨数据库和内存表联合查询?如何同时判断列表中多个元素的存在性?
直接用数组是可以的。int[] ids = { 1, 2, 3, 4, 5 };var query = from x in db.Tablewhere ids.Contains(x)select x;