コード例 #1
0
 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()));
 }
コード例 #2
0
 public Task BulkInsertAsync <TEntity>(IList <TEntity> entities, BulkInsertOptions options = null, CancellationToken cancellationToken = default)
     where TEntity : class
 {
     return(_dbContext.AddRangeAsync(entities.ToArray()));
 }