Microsoft
70-516 · Question #151
70-516 Question #151: Real Exam Question with Answer & Explanation
The correct answer is C. Wrap the saving of both ObjectContext objects within a TransactionScope object that is. See the full explanation below for the reasoning.
Question
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?
Options
- AJust save both ObjectContext objects because they automatically join the same transaction.
- BSave to the mainframe and use an if statement to verify that the changes were successful.
- CWrap the saving of both ObjectContext objects within a TransactionScope object that is
- DUse a Boolean flag to indicate the success of each save, which will tell you whether the save
Community Discussion
No community discussion yet for this question.