博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年11月22日

摘要: DataSet ds = getDataset();   //第一种方法 //var matches = from p in ds.Tables["products"].AsEnumerable() // where p.Field<decimal>("UnitPrice") > 10 // select p; //gvProducts.DataSource = matches.... 阅读全文

posted @ 2010-11-22 19:52 steve.z 阅读(178) 评论(0) 推荐(0) 编辑

摘要: “=>”就是lambda表达式。以下三种方式等效,其中第二种运用了lambda表达式。List<Employee> l = getEmployees();==============第一种================== //IEnumerable<Employee> matches = from emp in l // where emp... 阅读全文

posted @ 2010-11-22 19:03 steve.z 阅读(1795) 评论(0) 推荐(0) 编辑