DbExpressionBuilder.InnerJoin Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
InnerJoin(DbExpressionBinding, DbExpressionBinding, DbExpression) |
Creates a new DbJoinExpression that joins the sets specified by the left and right expression bindings, on the specified join condition, using InnerJoin as the DbExpressionKind . |
InnerJoin(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 InnerJoin as the DbExpressionKind . |
InnerJoin(DbExpressionBinding, DbExpressionBinding, DbExpression)
Creates a new DbJoinExpression that joins the sets specified by the left and right expression bindings, on the specified join condition, using InnerJoin as the DbExpressionKind .
public static System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression InnerJoin (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 InnerJoin : 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 InnerJoin (left As DbExpressionBinding, right As DbExpressionBinding, joinCondition As DbExpression) As DbJoinExpression
Parameters
- left
- DbExpressionBinding
An DbExpressionBinding that specifies the left set argument.
- right
- DbExpressionBinding
An DbExpressionBinding that specifies the right set argument.
- joinCondition
- DbExpression
An expression that specifies the condition on which to join.
Returns
A new DbJoinExpression, with an DbExpressionKind of InnerJoin, that represents the inner join operation applied to the left and right input sets under the given join condition.
Exceptions
left, right or joinCondition is null.
joinCondition does not have a Boolean result type.
Applies to
InnerJoin(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 InnerJoin as the DbExpressionKind .
public static System.Data.Entity.Core.Common.CommandTrees.DbJoinExpression InnerJoin (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 InnerJoin : 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 InnerJoin (left As DbExpression, right As DbExpression, joinCondition As Func(Of DbExpression, DbExpression, DbExpression)) As DbJoinExpression
Parameters
- left
- DbExpression
A DbExpression that specifies the left set argument.
- right
- DbExpression
A DbExpression that specifies the right set argument.
- joinCondition
- 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.
Returns
A new DbJoinExpression, with an DbExpressionKind of InnerJoin, that represents the inner join operation applied to the left and right input sets under the given join condition.
Exceptions
The expression produced by joinCondition is null.
The expression produced by joinCondition does not have a Boolean result type.
Applies to
Entity Framework