摘要: Join子句据说可以实现3中连接关系。1.内部连接——元素的连接关系必须同时满足被连接的两个数据源2.分组连接3.左外连接1.最基本的,内部连接,类似于sql中inner join。 由于student类和phone类只有一个匹配的连接,因此,只返回一个id,1. public class stud... 阅读全文
posted @ 2014-07-03 15:49 Genie in the bottle 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 特别喜欢同事看到我写了一句小排序的时候说,他当然喜欢Linq了,虽然我只是baidu之,不知其然也不知其所以然。基本格式 var = from in where orderby select 1. from & select static void Main(string[] a... 阅读全文
posted @ 2014-07-03 11:13 Genie in the bottle 阅读(654) 评论(0) 推荐(0) 编辑