Skip to content

CountAsync Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
Task<long> CountAsync(IPredicateNode query = null)Returns the count of records matching the optional predicate.
Task<long> CountAsync(Type entityType, IPredicateNode query = null)Returns the count of records matching the optional predicate for a runtime entity type.

Task<long> CountAsync(Type entityType, IPredicateNode query = null) ​

csharp
Task<long> CountAsync(Type entityType, IPredicateNode query = null)

Returns the count of records matching the optional predicate for a runtime entity type.

Task<long> CountAsync(IPredicateNode query = null) ​

csharp
Task<long> CountAsync(IPredicateNode query = null)

Returns the count of records matching the optional predicate.

Type parameters ​

NameDescription
TThe entity (row) type.

Parameters ​

NameDescription
queryOptional predicate to filter rows.

Returns ​

The number of matching rows.

Remarks ​

This method is asynchronous. Consider renaming to CountAsync to match conventions.