BeginTransaction
Purpose
The CMetaRepository class BeginTransaction function starts a new explicit transaction and sets the transaction nesting level counter to one or increments the nesting level counter.
Description
If an explicit transaction is not currently open, the CMetaRepository class BeginTransaction function starts a new one and sets the transaction nesting level counter to one.
If an explicit transaction is already open, the BeginTransaction function increments the nesting level counter.
Note: The nested transactions within an explicit transaction are not separate transactions, but are part of a single flat transaction, so the BeginTransaction function only opens a new transaction if there is not one already open.
Syntax
HRESULT BeginTransaction();