Deveel.Data.Session.Rollback C# (CSharp) Method

Rollback() public method

public Rollback ( ) : void
return void
        public void Rollback()
        {
            AssertNotDisposed();

            try {
                this.OnEvent(new SessionEvent(SessionEventType.BeforeRollback));

                if (Transaction != null) {
                    try {
                        Transaction.Rollback();
                    } finally {
                        DisposeTransaction();
                    }
                }
            } finally {
                this.OnEvent(new SessionEvent(SessionEventType.AfterRollback));
            }
        }