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