Пример #1
0
    public static Task UpdateAllAsync <TEntity>(
        this IAsyncStore <TEntity> store, CancellationToken cancellation, params TEntity[] entities)
        where TEntity : class
    {
        AllMethodContracts(store, entities);

        return(store.UpdateAllAsync(entities, cancellation));
    }
Пример #2
0
 public static Task UpdateAllAsync <TEntity>(
     this IAsyncStore <TEntity> store, params TEntity[] entities)
     where TEntity : class => store.UpdateAllAsync(CancellationToken.None, entities);