Does Entity Framework 4 have a Contain function?

I am now using the linq extension to provide me with Contains functionality. I call WhereIn as follows:

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

Is there a built-in function in the entity structure to use?

+4
source share
1 answer

pseudo code

 Answers.Where(x => catSTRarray.Contains(x.category.catid)); 
+4
source

Source: https://habr.com/ru/post/1309932/


All Articles