Пример #1
0
            public async Task BulkInsertAsync(int batchSize, NpgsqlConnection conn, BulkInsertion parent, BulkInsertMode mode,
                                              CancellationToken cancellation)
            {
                await parent._tenant.Database.EnsureStorageExistsAsync(typeof(T), cancellation).ConfigureAwait(true);

                await parent.bulkInsertDocumentsAsync(_documents, batchSize, conn, mode, cancellation).ConfigureAwait(false);
            }
Пример #2
0
 public Task BulkInsertAsync(int batchSize, NpgsqlConnection conn, BulkInsertion parent, BulkInsertMode mode,
                             CancellationToken cancellation)
 {
     return(parent.bulkInsertDocumentsAsync(_documents, batchSize, conn, mode, cancellation));
 }