RelationalQueryableMethodTranslatingExpressionVisitor.TranslateCount 方法

定义

Count<TSource>(IQueryable<TSource>)转换给定源上的方法和其他重载。

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

参数

source
ShapedQueryExpression

对其应用运算符的形状查询。

predicate
LambdaExpression

调用中提供的谓词。

返回

转换后的形状查询。

适用于