DbExpressionBuilder.LeftOuterJoin Method
Creates a new DbJoinExpression that joins the sets specified by the left and right expressions, on the specified join condition, using LeftOuterJoin as the DbExpressionKind.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | LeftOuterJoin(DbExpression, DbExpression, Func<DbExpression, DbExpression, DbExpression>) | Creates a new DbJoinExpression that joins the sets specified by the left and right expressions, on the specified join condition, using LeftOuterJoin as the DbExpressionKind. |
![]() ![]() | LeftOuterJoin(DbExpressionBinding, DbExpressionBinding, DbExpression) | Creates a new DbJoinExpression that joins the sets specified by the left and rightexpression bindings, on the specified join condition, using LeftOuterJoin as the DbExpressionKind. |
DbExpressionBuilder.LeftOuterJoin Method (DbExpression, DbExpression, Func<DbExpression, DbExpression, DbExpression>)
Creates a new DbJoinExpression that joins the sets specified by the left and right expressions, on the specified join condition, using LeftOuterJoin as the DbExpressionKind.
public static DbJoinExpression LeftOuterJoin( this DbExpression left, DbExpression right, Func<DbExpression, DbExpression, DbExpression> joinCondition )
Parameters
- left
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
A DbExpression that specifies the left set argument.
- right
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
A DbExpression that specifies the right set argument.
- joinCondition
-
Type:
System.Func<DbExpression, DbExpression, DbExpression>
A method representing the condition on which to join. This method must produce an expression with a Boolean result type that provides the logic of the join condition.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbJoinExpressionA new DbJoinExpression, with an DbExpressionKind of LeftOuterJoin, that represents the left outer join operation applied to the left and right input sets under the given join condition.
Exception | Condition |
---|---|
ArgumentNullException | left, right or joinCondition is null. |
ArgumentException | left or right does not have a collection result type. |
ArgumentNullException | The expression produced by joinCondition is null. |
ArgumentException | The expression produced by joinCondition does not have a Boolean result type. |
DbExpressionBuilder.LeftOuterJoin Method (DbExpressionBinding, DbExpressionBinding, DbExpression)
Creates a new DbJoinExpression that joins the sets specified by the left and rightexpression bindings, on the specified join condition, using LeftOuterJoin as the DbExpressionKind.
public static DbJoinExpression LeftOuterJoin( this DbExpressionBinding left, DbExpressionBinding right, DbExpression joinCondition )
Parameters
- left
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding
A DbExpressionBinding that specifies the left set argument.
- right
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding
A DbExpressionBinding that specifies the right set argument.
- joinCondition
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the condition on which to join.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbJoinExpressionA new DbJoinExpression, with an DbExpressionKind of LeftOuterJoin, that represents the left outer join operation applied to the left and right input sets under the given join condition.
Exception | Condition |
---|---|
ArgumentNullException | left, right or joinCondition is null. |
ArgumentException | joinCondition does not have a Boolean result type. |