RelationalSqlTranslatingExpressionVisitor.TranslateAverage 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TranslateAverage(SqlExpression) |
已过时.
将表达式的 Average 转换为等效的 SQL 表示形式。 |
TranslateAverage(Expression) |
TranslateAverage(SqlExpression)
注意
Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods
将表达式的 Average 转换为等效的 SQL 表示形式。
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression TranslateAverage (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression sqlExpression);
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? TranslateAverage (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression sqlExpression);
[System.Obsolete("Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods")]
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? TranslateAverage (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression sqlExpression);
abstract member TranslateAverage : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateAverage : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[<System.Obsolete("Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods")>]
abstract member TranslateAverage : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateAverage : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function TranslateAverage (sqlExpression As SqlExpression) As SqlExpression
参数
- sqlExpression
- SqlExpression
要转换 Average 的表达式。
返回
对给定表达式的 Average 的 SQL 转换。
- 属性
适用于
TranslateAverage(Expression)
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression TranslateAverage (System.Linq.Expressions.Expression expression);
abstract member TranslateAverage : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateAverage : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function TranslateAverage (expression As Expression) As SqlExpression
参数
- expression
- Expression