Condividi tramite


QueryableMethodTranslatingExpressionVisitor.TranslateAverage Metodo

Definizione

Converte Average(IQueryable<Decimal>) il metodo e altri overload sull'origine specificata.

protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateAverage (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression selector, Type resultType);
protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateAverage (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression? selector, Type resultType);
abstract member TranslateAverage : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression * Type -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected MustOverride Function TranslateAverage (source As ShapedQueryExpression, selector As LambdaExpression, resultType As Type) As ShapedQueryExpression

Parametri

source
ShapedQueryExpression

Query con forma su cui viene applicato l'operatore.

selector
LambdaExpression

Selettore fornito nella chiamata.

resultType
Type

Tipo di risultato dopo l'operazione.

Restituisce

Query con forma dopo la traduzione.

Si applica a