Compartilhar via


IAggregateMethodCallTranslator.Translate Método

Definição

Converte um LINQ em MethodCallExpression um equivalente de SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? Translate (System.Reflection.MethodInfo method, Microsoft.EntityFrameworkCore.Query.EnumerableExpression source, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
abstract member Translate : System.Reflection.MethodInfo * Microsoft.EntityFrameworkCore.Query.EnumerableExpression * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Function Translate (method As MethodInfo, source As EnumerableExpression, arguments As IReadOnlyList(Of SqlExpression), logger As IDiagnosticsLogger(Of DbLoggerCategory.Query)) As SqlExpression

Parâmetros

method
MethodInfo

As informações do método de Method.

source
EnumerableExpression

A origem na qual o método de agregação é aplicado.

arguments
IReadOnlyList<SqlExpression>

Representações SQL de escalar Arguments.

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

O agente de consulta a ser usado.

Retornos

Uma tradução SQL do MethodCallExpression.

Aplica-se a