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