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;
 }
Exemple #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn  = null;
     base.Dispose(disposing);
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn = null;
     base.Dispose(disposing);
 }
Exemple #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;
 }