Compartir a través de


IAggregateMethodCallTranslator.Translate Método

Definición

Traduce un LINQ MethodCallExpression a un 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

Información del método de Method.

source
EnumerableExpression

Origen en el que se aplica el método de agregado.

arguments
IReadOnlyList<SqlExpression>

Representaciones SQL de Argumentsescalar .

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

Registrador de consultas que se va a usar.

Devoluciones

Una traducción SQL de MethodCallExpression.

Se aplica a