Ejemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && _transaction != null)
            {
                _transaction.Dispose();
            }

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