Exemplo n.º 1
0
 public ProfiledDbTransaction(DbTransaction transaction, ProfiledDbConnection connection)
 {
     if (transaction == null) throw new ArgumentNullException("transaction");
     if (connection == null) throw new ArgumentNullException("connection");
     this._trans = transaction;
     this._conn = connection;
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn  = null;
     base.Dispose(disposing);
 }
Exemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn = null;
     base.Dispose(disposing);
 }
Exemplo n.º 4
0
 public ProfiledDbTransaction(DbTransaction transaction, ProfiledDbConnection connection)
 {
     if (transaction == null)
     {
         throw new ArgumentNullException("transaction");
     }
     if (connection == null)
     {
         throw new ArgumentNullException("connection");
     }
     this._trans = transaction;
     this._conn  = connection;
 }