Пример #1
0
 public static async Task <int> CountAsync <TEntity>(
     this IQueryable <TEntity> queryable,
     CancellationToken cancellationToken = default) where TEntity : class
 {
     return(await queryable.InvokeCosmosCallAsync(() => DocumentQueryable.CountAsync(queryable, cancellationToken), queryable.ToString()));
 }
Пример #2
0
 public static async Task <int> CountAsync <TEntity>(
     this IQueryable <TEntity> queryable,
     CancellationToken cancellationToken = default)
 {
     return(await queryable.InvokeCosmosCallAsync(() => DocumentQueryable.CountAsync(queryable, cancellationToken), queryable.ToString(), target : GetAltLocationFromQueryable(queryable)));
 }