开发者

LINQ to SQL WHERE "IN"

开发者 https://www.devze.com 2023-02-15 00:31 出处:网络
How ia can write query with IN. I want write query Products.Where(x=>x.Cat开发者_StackOverflow社区egoryId = {4,5,6....})

How ia can write query with IN. I want write query

Products.Where(x=>x.Cat开发者_StackOverflow社区egoryId = {4,5,6....})


Products.Where(x => arrayOfIDs.Contains(x.CategoryId));


LINQ to SQL query using "NOT IN"

0

精彩评论

暂无评论...
验证码 换一张
取 消