共用方式為


RelationalSqlTranslatingExpressionVisitor.TranslateCount 方法

定義

多載

TranslateCount(SqlExpression)
已淘汰.

將運算式的 Count 轉譯為相等的 SQL 標記法。

TranslateCount(Expression)

TranslateCount(SqlExpression)

來源:
RelationalSqlTranslatingExpressionVisitor.cs
來源:
RelationalSqlTranslatingExpressionVisitor.cs
來源:
RelationalSqlTranslatingExpressionVisitor.cs
來源:
RelationalSqlTranslatingExpressionVisitor.cs

警告

Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods

將運算式的 Count 轉譯為相等的 SQL 標記法。

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

參數

sqlExpression
SqlExpression

要轉譯 Count over 的運算式。

傳回

指定運算式的 COUNT SQL 轉譯。

屬性

適用於

TranslateCount(Expression)

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

參數

expression
Expression

傳回

適用於