예제 #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);