Partilhar via


RelationalSqlTranslatingExpressionVisitor.TranslateCount Método

Definição

Sobrecargas

TranslateCount(SqlExpression)
Obsoleto.

Converte Count em uma expressão para uma representação SQL equivalente.

TranslateCount(Expression)

TranslateCount(SqlExpression)

Origem:
RelationalSqlTranslatingExpressionVisitor.cs
Origem:
RelationalSqlTranslatingExpressionVisitor.cs
Origem:
RelationalSqlTranslatingExpressionVisitor.cs
Origem:
RelationalSqlTranslatingExpressionVisitor.cs

Cuidado

Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods

Converte Count em uma expressão para uma representação SQL equivalente.

public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression TranslateCount (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression sqlExpression);
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? TranslateCount (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression sqlExpression);
[System.Obsolete("Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods")]
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? TranslateCount (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression sqlExpression);
abstract member TranslateCount : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateCount : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[<System.Obsolete("Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods")>]
abstract member TranslateCount : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateCount : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function TranslateCount (sqlExpression As SqlExpression) As SqlExpression

Parâmetros

sqlExpression
SqlExpression

Uma expressão para traduzir Count over.

Retornos

Uma tradução SQL de Count sobre a expressão fornecida.

Atributos

Aplica-se a

TranslateCount(Expression)

Origem:
RelationalSqlTranslatingExpressionVisitor.cs
Origem:
RelationalSqlTranslatingExpressionVisitor.cs
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression TranslateCount (System.Linq.Expressions.Expression expression = default);
abstract member TranslateCount : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.TranslateCount : System.Linq.Expressions.Expression -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function TranslateCount (Optional expression As Expression = Nothing) As SqlExpression

Parâmetros

expression
Expression

Retornos

Aplica-se a