@@ -121,7 +121,7 @@ public void Execute(IEnumerable<T> data)
121121 _connectionContext . EnsureOpen ( ) ;
122122
123123 Log ( $ "Begin executing SqlBulkCopy. TableName: { _table . SchemaQualifiedTableName } ") ;
124- dataTable . SqlBulkCopy ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext . Connection , _connectionContext . Transaction , _options ) ;
124+ dataTable . SqlBulkCopy ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext , _options ) ;
125125 Log ( "End executing SqlBulkCopy." ) ;
126126 return ;
127127 }
@@ -139,7 +139,7 @@ public void Execute(IEnumerable<T> data)
139139 _connectionContext . EnsureOpen ( ) ;
140140
141141 Log ( $ "Begin executing SqlBulkCopy. TableName: { _table . SchemaQualifiedTableName } ") ;
142- dataTable . SqlBulkCopy ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext . Connection , _connectionContext . Transaction , _options ) ;
142+ dataTable . SqlBulkCopy ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext , _options ) ;
143143 Log ( "End executing SqlBulkCopy." ) ;
144144 return ;
145145 }
@@ -166,7 +166,7 @@ public void Execute(IEnumerable<T> data)
166166 _connectionContext . EnsureOpen ( ) ;
167167
168168 Log ( $ "Begin executing SqlBulkCopy. TableName: { _table . SchemaQualifiedTableName } ") ;
169- dataTable . SqlBulkCopy ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext . Connection , _connectionContext . Transaction , _options ) ;
169+ dataTable . SqlBulkCopy ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext , _options ) ;
170170 Log ( "End executing SqlBulkCopy." ) ;
171171 return ;
172172 }
@@ -198,7 +198,7 @@ public void Execute(IEnumerable<T> data)
198198 Log ( "End creating temp table." ) ;
199199
200200 Log ( $ "Begin executing SqlBulkCopy. TableName: { temptableName } ") ;
201- dataTable . SqlBulkCopy ( temptableName , null , _connectionContext . Connection , _connectionContext . Transaction , _options ) ;
201+ dataTable . SqlBulkCopy ( temptableName , null , _connectionContext , _options ) ;
202202 Log ( "End executing SqlBulkCopy." ) ;
203203
204204 var returnedIds = new Dictionary < long , object > ( ) ;
@@ -320,7 +320,7 @@ public async Task ExecuteAsync(IEnumerable<T> data, CancellationToken cancellati
320320 await _connectionContext . EnsureOpenAsync ( cancellationToken ) ;
321321
322322 Log ( $ "Begin executing SqlBulkCopy. TableName: { _table . SchemaQualifiedTableName } ") ;
323- await dataTable . SqlBulkCopyAsync ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext . Connection , _connectionContext . Transaction , _options , cancellationToken ) ;
323+ await dataTable . SqlBulkCopyAsync ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext , _options , cancellationToken ) ;
324324 Log ( "End executing SqlBulkCopy." ) ;
325325 return ;
326326 }
@@ -338,7 +338,7 @@ public async Task ExecuteAsync(IEnumerable<T> data, CancellationToken cancellati
338338 await _connectionContext . EnsureOpenAsync ( cancellationToken ) ;
339339
340340 Log ( $ "Begin executing SqlBulkCopy. TableName: { _table . SchemaQualifiedTableName } ") ;
341- await dataTable . SqlBulkCopyAsync ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext . Connection , _connectionContext . Transaction , _options , cancellationToken ) ;
341+ await dataTable . SqlBulkCopyAsync ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext , _options , cancellationToken ) ;
342342 Log ( "End executing SqlBulkCopy." ) ;
343343 return ;
344344 }
@@ -365,7 +365,7 @@ public async Task ExecuteAsync(IEnumerable<T> data, CancellationToken cancellati
365365 await _connectionContext . EnsureOpenAsync ( cancellationToken ) ;
366366
367367 Log ( $ "Begin executing SqlBulkCopy. TableName: { _table . SchemaQualifiedTableName } ") ;
368- await dataTable . SqlBulkCopyAsync ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext . Connection , _connectionContext . Transaction , _options , cancellationToken ) ;
368+ await dataTable . SqlBulkCopyAsync ( _table . SchemaQualifiedTableName , _table . ColumnNameMappings , _connectionContext , _options , cancellationToken ) ;
369369 Log ( "End executing SqlBulkCopy." ) ;
370370 return ;
371371 }
@@ -397,7 +397,7 @@ public async Task ExecuteAsync(IEnumerable<T> data, CancellationToken cancellati
397397 Log ( "End creating temp table." ) ;
398398
399399 Log ( $ "Begin executing SqlBulkCopy. TableName: { temptableName } ") ;
400- await dataTable . SqlBulkCopyAsync ( temptableName , null , _connectionContext . Connection , _connectionContext . Transaction , _options , cancellationToken ) ;
400+ await dataTable . SqlBulkCopyAsync ( temptableName , null , _connectionContext , _options , cancellationToken ) ;
401401 Log ( "End executing SqlBulkCopy." ) ;
402402
403403 var returnedIds = new Dictionary < long , object > ( ) ;
0 commit comments