如何使用Entity Framework在LINQ中进行左连接 [英] How to do Left join in LINQ with Entity Framework

查看:237
本文介绍了如何使用Entity Framework在LINQ中进行左连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到了如何在LINQ中进行左连接,但实体框架没有DefaultIfEmpty()函数。那么,我如何在实体框架中进行左连接?

解决方案

这是EF第1节中不支持/支持的方法的列表。我建议你现在使用另一种方法。

http:// msdn。 microsoft.com/en-us/library/bb738638.aspx

I have found how to do Left join in LINQ but Entity framework doesnt have DefaultIfEmpty() function. So, how can I do left join in Entity framework?

解决方案

This is the list of unsupported/supported methods in v.1 of EF. I suggest you use an alternate method for now.

http://msdn.microsoft.com/en-us/library/bb738638.aspx


这篇关于如何使用Entity Framework在LINQ中进行左连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆