Example #1
0
        public async Task BulkCopyAsync <T>(string connectionString, IEnumerable <T> enumerable, string tableName, int?batchSize, TimeSpan?timeout, CancellationToken?token)
        {
            var dataTable = _dataTableService.ToDataTable(enumerable, tableName);

            await BulkCopyAsync(connectionString, dataTable, tableName, batchSize, timeout, token).ConfigureAwait(false);
        }