Select from following answers:- Add all update code to a single TransactionScope using block. Set the TransactionScopeOption to Required.
- Add each update operation to a separate TransactionScope using block. Set the TransactionScopeOption of each to RequiresNew.
- Add all update code to a single TransactionScope using block. Set the TransactionScopeOption to Suppress.
- All Above
If the scope is instantiated with Required and an ambient transaction is present, the scope joins that transaction. If an ambient transaction is not present, a new transaction is created.
If the scope is instantiated with RequiresNew, a new transaction scope will be created. The operations will not be part of an ambient transaction.
If the scope is instantiated with Suppress, it never takes part in a transaction, whether or not an ambient transaction is present.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator