共用方式為


RelationalSqlTranslatingExpressionVisitor.TranslateAverage 方法

定義

多載

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

傳回

適用於