QueryableMethodTranslatingExpressionVisitor.TranslateAverage 方法

定义

Average(IQueryable<Decimal>)转换给定源上的方法和其他重载。

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

参数

source
ShapedQueryExpression

对其应用运算符的形状查询。

selector
LambdaExpression

调用中提供的选择器。

resultType
Type

操作后的结果类型。

返回

转换后的形状查询。

适用于