You implement a method that uses Entity Framework to perform several update operations. You need to ensure that the method executes within the scope of an ambient transaction if an ambient transaction exists. If an ambient transaction does not exist, you need to ensure that the method's update operations execute as a single transaction.

What should you do?

 Posted by Rajkatie on 9/30/2012 | Category: ADO.NET Interview questions | Views: 1448 | Points: 40
Select from following answers:
  1. Add all update code to a single TransactionScope using block. Set the TransactionScopeOption to Required.
  2. Add each update operation to a separate TransactionScope using block. Set the TransactionScopeOption of each to RequiresNew.
  3. Add all update code to a single TransactionScope using block. Set the TransactionScopeOption to Suppress.
  4. All Above

Show Correct Answer


Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response