记录点滴

记录生活

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

2011年8月17日

摘要: 通过16道练习学习Linq和Lambda1、 查询Student表中的所有记录的Sname、Ssex和Class列。select sname,ssex,class from studentLinq: from s in Students select new { s.SNAME, s.SSEX, s.CLASS }Lambda: Students.Select( s => new { SNAME = s.SNAME,SSEX = s.SSEX,CLASS = s.CLASS }) 2、 查询教师所有的单位即不重复的Depart列。select distinct depart from t 阅读全文
posted @ 2011-08-17 00:01 啊峰 阅读(369) 评论(1) 推荐(0) 编辑