You implement a method that retrieves a LINQ to SQL Product entity and changes its Status property. You need to ensure that the success or failure of the data source update does not affect any ambient transactions.

What should you do?

 Posted by Rajkatie on 9/30/2012 | Category: ADO.NET Interview questions | Views: 1205 | Points: 40
Select from following answers:
  1. Move the Product update code to the TransactionScope using block. Set the TransactionScopeOption to Suppress.
  2. Add the Enlist=true setting to the connection string.
  3. Move the Product update code to a try-catch block. Handle any exception.
  4. All Above

Show Correct Answer

Source: MeasureUp.Com | | Alert Moderator 

Comments or Responses

Login to post response