Example #1
0
        internal void CloseTransaction()
        {
            if (currentTransaction == this.transaction)
                currentTransaction = null;

            this.transaction = null;
        }
Example #2
0
        public Transaction OpenTransaction()
        {
            this.transaction = new Transaction(this);

            if (currentTransaction == null)
                currentTransaction = this.transaction;
            else
                throw new InvalidOperationException("There is an Existing Transaction");

            return this.transaction;
        }