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

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