Condividi tramite


RelationalQueryableMethodTranslatingExpressionVisitor.TranslateAverage Metodo

Definizione

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

protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateAverage (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression selector, Type resultType);
protected override Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateAverage (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression? selector, Type resultType);
override this.TranslateAverage : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression * Type -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected Overrides 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