摘要: var sizelist= (from p in stockList select p.Size).Distinct().ToArray(); 阅读全文
posted @ 2010-10-15 15:07 老齐编程 阅读(3899) 评论(0) 推荐(0) 编辑
摘要: 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) 推荐(0) 编辑