How to do a “where in values” in LINQ-to-Entities 3.5

前端 未结 7 1283
时光说笑
时光说笑 2020-12-15 18:42

Does anybody know how to apply a \"where in values\" type condition using LINQ-to-Entities? I\'ve tried the following but it doesn\'t work:

var values = new         


        
7条回答
  •  醉梦人生
    2020-12-15 19:35

    Using the where method doesn't alway work

    var results = from p in db.Products
    
                 where p.Name == nameTextBox.Text
    
                 select p;
    

提交回复
热议问题