How do you do a SQL style 'IN' statement in LINQ to Entities (Entity Framework) if Contains isn't supported?

后端 未结 4 1822
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-13 16:57

I\'m using LINQ to Entities (not LINQ to SQL) and I\'m having trouble creating an \'IN\' style query. Here is my query at the moment:

var items = db.InventoryIt         


        
4条回答
  •  礼貌的吻别
    2021-02-13 17:25

    As mentioned by Diego B Vega in this post (second answer), Contains should now work in EF4.

提交回复
热议问题