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
methodMethodInfoThe method info from Method.
sourceEnumerableExpressionThe source on which the aggregate method is applied.
argumentsIReadOnlyList<SqlExpression>SQL representations of scalar Arguments.
loggerIDiagnosticsLogger<Query>The query logger to use.
Returns
- SqlExpression
A SQL translation of the MethodCallExpression.