Method CountAsync
| Improve this Doc View SourceCountAsync()
Gets the total number of records of this database recordset.
Declaration
public Task<int> CountAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | The total number of records of this database recordset. |
CountAsync(CancellationToken)
Gets the total number of records of this database recordset.
Declaration
public virtual Task<int> CountAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The async cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | The total number of records of this database recordset. |