QueryableMethodTranslatingExpressionVisitor.TranslateLeftJoin Método

Definição

Converte LeftJoin sobre a origem fornecida.

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

Parâmetros

outer
ShapedQueryExpression

A consulta em forma na qual o operador é aplicado.

inner
ShapedQueryExpression

A consulta em forma interna com a qual executar a junção.

outerKeySelector
LambdaExpression

O seletor de chave para a origem externa.

innerKeySelector
LambdaExpression

O seletor de chave para a origem interna.

resultSelector
LambdaExpression

O seletor de resultados fornecido na chamada.

Retornos

A consulta em forma após a tradução.

Comentários

Determinados padrões de GroupJoin-DefaultIfEmpty-SelectMany representam uma junção à esquerda no banco de dados. Identificamos esse padrão com antecedência e o convertemos para unir como sintaxe.

Aplica-se a