*右* LINQ中的外部联接 [英] *Right* outer join in LINQ

查看:52
本文介绍了*右* LINQ中的外部联接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以肯定地说,LINQ中没有正确的外部联接之类的东西吗?

Is it safe to say that there is no such thing as a right outer join in LINQ?

我知道要有效地创建一个表,您只需在左外部联接中交换表即可.但是,可以将DefaultIfEmpty()方法应用于等值连接左侧的表以使其成为右外部连接吗?

I know to effectively create one, you'd just swap the tables in a left outer join. But can you apply the DefaultIfEmpty() method to the table on the left side of the equijoin to make it a right outer join?

推荐答案

广泛研究之后,我发现没有任何内容涉及正确的外部联接.外部联接唯一​​可用的语法是左外部联接.

After extensive looking, I can find nothing referring to a right outer join. The only syntax available for an outer join is a left outer join.

这篇关于*右* LINQ中的外部联接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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