Linq 左连接 内连接

//左连接
from a in employeeList
let u = from b in employeeList2
        where a.ID.Equals(b.ID)
        select a
from c in u
select c;


//内连接
from a in employeeList
let u = from b in employeeList2
        where a.ID.Equals(b.ID)
        select a
from c in u.DefaultIfEmpty()
select c;
posted @ 2012-09-11 13:30  iDEAAM  阅读(205)  评论(0编辑  收藏  举报