Commits the database transaction.
public void Commit();
If the transaction is still active, this will commit the transaction running on the associated AdsConnection. If the transaction has already been committed or rolled back, this will throw an InvalidOperationException.
If a connections has nested transactions, the nesting level will be decremented, but the work will not be committed. When used in nested transactions, commits of the inner transactions do not commit the data or release locks. Only committing the outer most transaction will commit the work and end the transaction.