开发者

Does Entity Framework 4 have a Contains feature?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜