DbExpressionBuilder.LeftOuterJoin 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LeftOuterJoin(DbExpression, DbExpression, Func<DbExpression,DbExpression,DbExpression>) |
使用 LeftOuterJoin 作为 DbExpressionKind ,在指定的联接条件上创建联接左表达式和右表达式指定的集的新 DbJoinExpression 。 |
LeftOuterJoin(DbExpressionBinding, DbExpressionBinding, DbExpression) |
创建一个新的 DbJoinExpression ,它使用 LeftOuterJoin 作为 DbExpressionKind ,在指定的联接条件上联接由左表达式绑定和右表达式绑定指定的集。 |
LeftOuterJoin(DbExpression, DbExpression, Func<DbExpression,DbExpression,DbExpression>)
使用 LeftOuterJoin 作为 DbExpressionKind ,在指定的联接条件上创建联接左表达式和右表达式指定的集的新 DbJoinExpression 。
public static System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression LeftOuterJoin (this System.Data.Entity.Core.Common.CommandTrees.DbExpression left, System.Data.Entity.Core.Common.CommandTrees.DbExpression right, Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Data.Entity.Core.Common.CommandTrees.DbExpression> joinCondition);
static member LeftOuterJoin : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression, System.Data.Entity.Core.Common.CommandTrees.DbExpression, System.Data.Entity.Core.Common.CommandTrees.DbExpression> -> System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression
<Extension()>
Public Function LeftOuterJoin (left As DbExpression, right As DbExpression, joinCondition As Func(Of DbExpression, DbExpression, DbExpression)) As DbJoinExpression
参数
- left
- DbExpression
用于指定左侧集自变量的 DbExpression。
- right
- DbExpression
用于指定右侧集自变量的 DbExpression。
- joinCondition
- Func<DbExpression,DbExpression,DbExpression>
表示要作为联接依据的条件的方法。 此方法必须生成具有布尔结果类型的表达式,该结果类型提供联接条件的逻辑。
返回
新 DbJoinExpression,使用 LeftOuterJoin 的 DbExpressionKind,代表应用于给定联接条件下的左右输入集的左外部联接操作。
例外
joinCondition 生成的表达式为 null。
joinCondition 生成的表达式没有布尔结果类型。
适用于
LeftOuterJoin(DbExpressionBinding, DbExpressionBinding, DbExpression)
创建一个新的 DbJoinExpression ,它使用 LeftOuterJoin 作为 DbExpressionKind ,在指定的联接条件上联接由左表达式绑定和右表达式绑定指定的集。
public static System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression LeftOuterJoin (this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding left, System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding right, System.Data.Entity.Core.Common.CommandTrees.DbExpression joinCondition);
static member LeftOuterJoin : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression
<Extension()>
Public Function LeftOuterJoin (left As DbExpressionBinding, right As DbExpressionBinding, joinCondition As DbExpression) As DbJoinExpression
参数
- left
- DbExpressionBinding
指定左侧集参数的 DbExpressionBinding。
- right
- DbExpressionBinding
指定右侧集参数的 DbExpressionBinding。
- joinCondition
- DbExpression
一个指定联接条件的表达式。
返回
新 DbJoinExpression,使用 LeftOuterJoin 的 DbExpressionKind,代表应用于给定联接条件下的左右输入集的左外部联接操作。
例外
left、right 或 joinCondition 为 null。
joinCondition 没有布尔结果类型。