Interface IAggregateMethodCallTranslator
- Namespace
- Microsoft.EntityFrameworkCore.Query
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
A SQL translator for LINQ MethodCallExpression expression represending an aggregate function.
This interface is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IAggregateMethodCallTranslator
Methods
Translate(MethodInfo, EnumerableExpression, IReadOnlyList<SqlExpression>, IDiagnosticsLogger<Query>)
Translates a LINQ MethodCallExpression to a SQL equivalent.
SqlExpression? Translate(MethodInfo method, EnumerableExpression source, IReadOnlyList<SqlExpression> arguments, IDiagnosticsLogger<DbLoggerCategory.Query> logger)
Parameters
method
MethodInfoThe method info from Method.
source
EnumerableExpressionThe source on which the aggregate method is applied.
arguments
IReadOnlyList<SqlExpression>SQL representations of scalar Arguments.
logger
IDiagnosticsLogger<Query>The query logger to use.
Returns
- SqlExpression
A SQL translation of the MethodCallExpression.