/// <summary>Initializes a new instance of the NServiceKit.MiniProfiler.Data.ProfiledDbTransaction class.</summary>
 ///
 /// <exception cref="ArgumentNullException">Thrown when one or more required arguments are null.</exception>
 ///
 /// <param name="transaction">The transaction.</param>
 /// <param name="connection"> The connection.</param>
 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;
 }
 /// <summary>Releases the unmanaged resources used by the <see cref="T:System.Data.Common.DbTransaction" /> and optionally releases the managed resources.</summary>
 ///
 /// <param name="disposing">If true, this method releases all resources held by any managed objects that this <see cref="T:System.Data.Common.DbTransaction" /> references.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn = null;
     base.Dispose(disposing);
 }
 /// <summary>Releases the unmanaged resources used by the <see cref="T:System.Data.Common.DbTransaction" /> and optionally releases the managed resources.</summary>
 ///
 /// <param name="disposing">If true, this method releases all resources held by any managed objects that this <see cref="T:System.Data.Common.DbTransaction" /> references.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && _trans != null)
     {
         _trans.Dispose();
     }
     _trans = null;
     _conn  = null;
     base.Dispose(disposing);
 }
 /// <summary>Initializes a new instance of the NServiceKit.MiniProfiler.Data.ProfiledDbTransaction class.</summary>
 ///
 /// <exception cref="ArgumentNullException">Thrown when one or more required arguments are null.</exception>
 ///
 /// <param name="transaction">The transaction.</param>
 /// <param name="connection"> The connection.</param>
 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;
 }