Exemplo n.º 1
0
    public static Task AddOrUpdateAllAsync <TEntity>(
        this IAsyncStore <TEntity> store, CancellationToken cancellation, params TEntity[] entities)
        where TEntity : class
    {
        AllMethodContracts(store, entities);

        return(store.AddOrUpdateAllAsync(entities, cancellation));
    }
Exemplo n.º 2
0
 public static Task AddOrUpdateAllAsync <TEntity>(
     this IAsyncStore <TEntity> store, params TEntity[] entities)
     where TEntity : class => store.AddOrUpdateAllAsync(CancellationToken.None, entities);