You are working with an ObjectContext object that targets the mainframe and another ObjectContext object that targets SQL Server. When it's time to save the changes, you want all changes to be sent to the mainframe and to SQL Server as one transaction.
How can you accomplish this?

 Posted by Rajkatie on 8/18/2012 | Category: ADO.NET Interview questions | Views: 2777 | Points: 40
Select from following answers:
  1. Wrap the saving of both ObjectContext objects within a TransactionScope object that is implemented in a using statement in which the last line executes the Complete method on the TransactionScope class.
  2. Just save both ObjectContext objects because they automatically join the same transaction.
  3. Use a Boolean flag to indicate the success of each save, which will tell you whether the save was successful.
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response