CosmosExtensionsCountAsync Method

Overload List

CountAsyncT(ItemBaseRepositoryT, NullablePartitionKey, CancellationToken) Counts the amount of items in a repository. A partitionKey can be added as a filter. If you want to add a query, use the overload of this method containing the parameter to add a QueryDefinition
CountAsyncT(ItemBaseRepositoryT, QueryDefinition, NullablePartitionKey, CancellationToken) Counts the amount of items in a repository's Container filtered by the query and the (optional) partitionKey.

See Also