コード例 #1
0
 public static async Task BulkInsertAsync(this IDAC dac, DataTable table, BulkInsertOptions bulkInsertOptions, TimeSpan timeout, CancellationToken cancellationToken)
 {
     // Begin a scope to make sure it's disposed if cancellationToken is turned on
     using (var scope = dac.BeginScope()) {
         await Task.Run(() => dac.BulkInsert(table, bulkInsertOptions, timeout), cancellationToken);
     }
 }
コード例 #2
0
ファイル: DACDecorator.cs プロジェクト: Sphere10/Framework
 public virtual void BulkInsert(DataTable table, BulkInsertOptions bulkInsertOptions, TimeSpan timeout)
 {
     DecoratedDAC.BulkInsert(table, bulkInsertOptions, timeout);
 }