Exemplo n.º 1
0
        } // CommitTransaction

        public static void RollBackTransaction()
        {
            if (TransactionStack.Count != 0)
            {
                var topLevelTransaction = TransactionStack.Peek();
                if (topLevelTransaction != null)
                    topLevelTransaction.UnExecute();

                TransactionStack.Clear();
            }
        } // RollBackTransaction
Exemplo n.º 2
0
 internal void RollBackTransaction()
 {
     if (TransactionStack.Count != 0)
     {
         ITransaction transaction = TransactionStack.Peek();
         if ((transaction != null) && (transaction.AccumulatingAction != null))
         {
             transaction.AccumulatingAction.UnExecute();
         }
         TransactionStack.Clear();
     }
 }
        /// <summary>
        /// Rolls the back transaction.
        /// </summary>
        public void RollBackTransaction()
        {
            if (TransactionStack.Count != 0)
            {
                var topLevelTransaction = TransactionStack.Peek();
                if (topLevelTransaction != null && topLevelTransaction.AccumulatingAction != null)
                {
                    topLevelTransaction.AccumulatingAction.UnExecute();
                }

                TransactionStack.Clear();
            }
        }