共用方式為


QueryableMethodTranslatingExpressionVisitor.TranslateCount 方法

定義

Count<TSource>(IQueryable<TSource>)在指定的來源上轉譯方法和其他多載。

protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression TranslateCount (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression predicate);
protected abstract Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression? TranslateCount (Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression source, System.Linq.Expressions.LambdaExpression? predicate);
abstract member TranslateCount : Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression * System.Linq.Expressions.LambdaExpression -> Microsoft.EntityFrameworkCore.Query.ShapedQueryExpression
Protected MustOverride Function TranslateCount (source As ShapedQueryExpression, predicate As LambdaExpression) As ShapedQueryExpression

參數

source
ShapedQueryExpression

套用運算子的成形查詢。

predicate
LambdaExpression

呼叫中提供的述詞。

傳回

翻譯後的成形查詢。

適用於