You add the following code to begin a transactional code block:

Transaction Scope = new TransactionScope();

You must ensure that the transactional code that follows this block commits or aborts predictably without extra overhead.

What should you do?

 Posted by Rajkatie on 9/30/2012 | Category: ADO.NET Interview questions | Views: 2670 | Points: 40
Select from following answers:
  1. Add a try-catch finally block after the TransactionScope declaration. Call the Complete method as the last statement of the try block.
  2. Enclose the TransactionScope declaration in a using block. Call the Complete method as the last statement of the block.
  3. Add a try-catch finally block after the TransactionScope declaration. Call the Complete method in the finally block.
  4. All Above

Show Correct Answer


Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response