Share via


QueryableMethodTranslatingExpressionVisitor.TranslateLeftJoin Method

Definition

Translates LeftJoin over the given source.

protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateLeftJoin (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression outer, Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression inner, System.Linq.Expressions.LambdaExpression outerKeySelector, System.Linq.Expressions.LambdaExpression innerKeySelector, System.Linq.Expressions.LambdaExpression resultSelector);
protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateLeftJoin (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression outer, Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression inner, System.Linq.Expressions.LambdaExpression outerKeySelector, System.Linq.Expressions.LambdaExpression innerKeySelector, System.Linq.Expressions.LambdaExpression resultSelector);
abstract member TranslateLeftJoin : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression * System.Linq.Expressions.LambdaExpression * System.Linq.Expressions.LambdaExpression -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected MustOverride Function TranslateLeftJoin (outer As ShapedQueryExpression, inner As ShapedQueryExpression, outerKeySelector As LambdaExpression, innerKeySelector As LambdaExpression, resultSelector As LambdaExpression) As ShapedQueryExpression

Parameters

outer
ShapedQueryExpression

The shaped query on which the operator is applied.

inner
ShapedQueryExpression

The inner shaped query to perform join with.

outerKeySelector
LambdaExpression

The key selector for the outer source.

innerKeySelector
LambdaExpression

The key selector for the inner source.

resultSelector
LambdaExpression

The result selector supplied in the call.

Returns

The shaped query after translation.

Remarks

Certain patterns of GroupJoin-DefaultIfEmpty-SelectMany represents a left join in database. We identify such pattern in advance and convert it to join like syntax.

Applies to