随笔分类 -  Linq

摘要:1 [Category("Grouping Operators")] 2 [Description("This sample uses group by to partition a list of numbers by " + 3 "their remainder when divided by 5.")] 4 public void DataSetLinq40() 5 { 6 7 var numbers = testDS.... 阅读全文
posted @ 2013-10-16 10:34 J.Y 阅读(340) 评论(0) 推荐(0)
摘要:获取List customerList的函数见:http://www.cnblogs.com/yf2011/p/3369927.html输出List中Berlin城市的Customer信息和该Customer订单 1 public void GetCustomerOrderByCity() 2 { 3 List customers = GetList(); 4 5 var waCustomers = 6 from cust in customers 7 ... 阅读全文
posted @ 2013-10-15 15:46 J.Y 阅读(4210) 评论(0) 推荐(0)
摘要:实体类 1 public class Customer 2 { 3 public string CustomerID { get; set; } 4 public string CompanyName { get; set; } 5 public string Address { get; set; } 6 public string City { get; set; } 7 public string Region { get; set; } 8 ... 阅读全文
posted @ 2013-10-15 11:44 J.Y 阅读(604) 评论(0) 推荐(0)