Ejemplo n.º 1
0
 /// <summary>
 /// Begins the batch connection.
 /// </summary>
 /// <param name="batchSize">Size of the batch.</param>
 /// <param name="il">The il.</param>
 public void BeginBatchConnection(int batchSize, System.Data.IsolationLevel il)
 {
     batchConnection = CreateConnection(true);
     //this.batchSize = batchSize;
     batchCommander = new BatchCommander(this, batchSize, il);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Ends the batch connection.
 /// </summary>
 public void EndBatchConnection()
 {
     batchCommander.Close();
     CloseConnection(batchConnection);
     batchConnection = null;
     batchCommander = null;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Begins the batch connection.
 /// </summary>
 /// <param name="batchSize">Size of the batch.</param>
 /// <param name="tran">The tran.</param>
 public void BeginBatchConnection(int batchSize, DbTransaction tran)
 {
     batchConnection = CreateConnection(true);
     //this.batchSize = batchSize;
     batchCommander = new BatchCommander(this, batchSize, tran);
 }