Appearance
CountAsync Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
T | The entity (row) type. |
Parameters
| Name | Description |
|---|---|
query | Optional predicate to filter rows. |
Returns
The number of matching rows.
Remarks
This method is asynchronous. Consider renaming to CountAsync to match conventions.