Compartilhar via


QueryableMethodTranslatingExpressionVisitor.TranslateDefaultIfEmpty Método

Definição

Converte o DefaultIfEmpty<TSource>(IQueryable<TSource>) método e outras sobrecargas sobre a fonte fornecida.

protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateDefaultIfEmpty (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.Expression defaultValue);
protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateDefaultIfEmpty (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.Expression? defaultValue);
abstract member TranslateDefaultIfEmpty : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected MustOverride Function TranslateDefaultIfEmpty (source As ShapedQueryExpression, defaultValue As Expression) As ShapedQueryExpression

Parâmetros

source
ShapedQueryExpression

A consulta em forma na qual o operador é aplicado.

defaultValue
Expression

O valor padrão a ser usado.

Retornos

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

Aplica-se a