예제 #1
0
파일: Session.cs 프로젝트: ajlopez/AjCoRe
        internal void CloseTransaction()
        {
            if (currentTransaction == this.transaction)
                currentTransaction = null;

            this.transaction = null;
        }
예제 #2
0
파일: Session.cs 프로젝트: ajlopez/AjCoRe
        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;
        }