Sdílet prostřednictvím


RelationalSqlTranslatingExpressionVisitor.TranslateAverage Metoda

Definice

Přetížení

TranslateAverage(SqlExpression)
Zastaralé.

Přeloží průměr výrazu na ekvivalentní reprezentaci SQL.

TranslateAverage(Expression)

TranslateAverage(SqlExpression)

Zdroj:
RelationalSqlTranslatingExpressionVisitor.cs
Zdroj:
RelationalSqlTranslatingExpressionVisitor.cs
Zdroj:
RelationalSqlTranslatingExpressionVisitor.cs
Zdroj:
RelationalSqlTranslatingExpressionVisitor.cs

Upozornění

Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods

Přeloží průměr výrazu na ekvivalentní reprezentaci 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

Parametry

sqlExpression
SqlExpression

Výraz, který má hodnotu Average přeložit.

Návraty

Překlad SQL hodnoty Average nad daným výrazem

Atributy

Platí pro

TranslateAverage(Expression)

Zdroj:
RelationalSqlTranslatingExpressionVisitor.cs
Zdroj:
RelationalSqlTranslatingExpressionVisitor.cs
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

Parametry

expression
Expression

Návraty

Platí pro