Linq In语句相当于 select wher in

string[] cities =new string[] { "Seattle", "London", "Vancouver", "Paris" };
var
q = db.Customers.Where(p=>cities.Contains(p.City)).ToList();
posted @ 2010-10-15 15:05  老齐编程  阅读(282)  评论(0编辑  收藏  举报