摘要: 我们继续讲解LINQ to SQL语句,这篇我们来讨论Union All/Union/Intersect操作和Top/Bottom操作和Paging操作和SqlMethods操作 。Union All/Union/Intersect操作适用场景:对两个集合的处理,例如追加、合并、取相同项、相交项等等。Concat(连接)说明:连接不同的集合,不会自动过滤相同项;延迟。1.简单形式:var q = ( from c in db.Customers select c.Phone ).Concat( from c in db.Custom... 阅读全文
posted @ 2013-08-30 09:39 赤狐(zcm123) 阅读(210) 评论(0) 推荐(0) 编辑