标签: linq-to-sql
ia如何使用IN编写查询。我想写查询
Products.Where(x=>x.CategoryId = {4,5,6....})
答案 0 :(得分:4)
Products.Where(x => arrayOfIDs.Contains(x.CategoryId));
答案 1 :(得分:1)
LINQ to SQL query using "NOT IN"