Entity Framework 4是否具有Containsfunction?
现在我正在使用linq的扩展来为我提供Contains的function。 我把WhereIn称为:
Answers = Answers.WhereIn(x => x.category.catid, catSTRarray);
entity framework中是否有内置函数可供使用?
伪代码
Answers.Where(x => catSTRarray.Contains(x.category.catid));