TEntityConnection.RollbackTransaction Method

Discards all current data changes and ends transaction.




procedure RollbackTransaction;


Call the RollbackTransaction method to discard all data modifications associated with the current transaction to the database server and then end the transaction. The current transaction is the last transaction started by calling StartTransaction. To save all changes made within the current transaction, the CommitTransaction method is used. To check whether the current transaction is active, the InTransaction property is used. When no active transactions present, the RollbackTransaction method raises an exception.

See Also

© 1997-2018 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback