IAggregateMethodCallTranslator.Translate Metodo

Definizione

Converte un LINQ MethodCallExpression in un equivalente 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

Parametri

method
MethodInfo

Informazioni sul metodo da Method.

source
EnumerableExpression

Origine in cui viene applicato il metodo di aggregazione.

arguments
IReadOnlyList<SqlExpression>

Rappresentazioni SQL di scalari Arguments.

logger
IDiagnosticsLogger<DbLoggerCategory.Query>

Logger di query da usare.

Restituisce

Conversione SQL di MethodCallExpression.

Si applica a