RelationalSqlTranslatingExpressionVisitor.TranslateLongCount 方法

定义

重载

TranslateLongCount(SqlExpression)
已过时.

将表达式中的 LongCount 转换为等效的 SQL 表示形式。

TranslateLongCount(Expression)

TranslateLongCount(SqlExpression)

注意

Use IAggregateMethodCallTranslatorProvider to add translation for aggregate methods

将表达式中的 LongCount 转换为等效的 SQL 表示形式。

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

参数

sqlExpression
SqlExpression

用于转换 LongCount 的表达式。

返回

在给定表达式上对 LongCount 的 SQL 转换。

属性

适用于

TranslateLongCount(Expression)

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

参数

expression
Expression

返回

适用于