public Task BulkInsertAsync <TEntity>(IList <TEntity> entities, BulkInsertOptions options = null, CancellationToken cancellationToken = default) where TEntity : class { if (entities == null) { throw new ArgumentNullException(nameof(entities)); } return(_dbContext.AddRangeAsync(entities.ToArray())); }
public Task BulkInsertAsync <TEntity>(IList <TEntity> entities, BulkInsertOptions options = null, CancellationToken cancellationToken = default) where TEntity : class { return(_dbContext.AddRangeAsync(entities.ToArray())); }