开发者

Does Entity Framework 4 have a Contains feature?

开发者 https://www.devze.com 2022-12-30 06:17 出处:网络
Right now I am using an extension开发者_开发百科 to linq to provide me with the functionality of Contains. I call the WhereIn like this:

Right now I am using an extension开发者_开发百科 to linq to provide me with the functionality of Contains. I call the WhereIn like this:

Answers = Answers.WhereIn(x => x.category.catid, catSTRarray);

Is there a built in function within entity framework to use?


pseudo code

Answers.Where(x => catSTRarray.Contains(x.category.catid)); 
0

精彩评论

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