2015年11月23日

lambda left join .DefaultIfEmpty

摘要: 我们知道lambda表达式在Linq to sql 和 Entity framework 中使用join函数可以实现innerjoin,那么怎么才能在lambda表达式中实现left join呢?秘诀就是在join后面加上一个函数DefaultIfEmpty函数,实际上这个函数在linq中貌似也只有... 阅读全文

posted @ 2015-11-23 11:00 wcq 阅读(2415) 评论(1) 推荐(0) 编辑

导航