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