Ejemplo n.º 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);
            }
Ejemplo n.º 2
0
 public Task BulkInsertAsync(int batchSize, NpgsqlConnection conn, BulkInsertion parent, BulkInsertMode mode,
                             CancellationToken cancellation)
 {
     return(parent.bulkInsertDocumentsAsync(_documents, batchSize, conn, mode, cancellation));
 }