Discards all current data changes and ends transaction.
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.