protected override void Dispose(bool disposing)
        {
            if (disposing && _transaction != null)
            {
                _transaction.Dispose();
            }

            _transaction = null;
            _connection  = null;
            base.Dispose(disposing);
        }
 public AuditedDbTransaction(DbTransaction transaction, AuditedDbConnection connection)
 {
     if (transaction == null)
     {
         throw new ArgumentNullException("transaction");
     }
     if (connection == null)
     {
         throw new ArgumentNullException("connection");
     }
     _transaction = transaction;
     _connection  = connection;
 }