Commits the current transaction.
Call the CommitTransaction method to commit current transaction. On commit server writes permanently all pending data updates associated with the current transaction to the database and then ends the transaction. The current transaction is the last transaction started by calling StartTransaction. To cancel all changes made within the current transaction, the RollbackTransaction method is used. To check whether the current transaction is active, the InTransaction property is used. When no active transactions present, the CommitTransaction method raises an exception.