Select from following answers:- 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.

- Just save both ObjectContext objects because they automatically join the same transaction.
- Use a Boolean flag to indicate the success of each save, which will tell you whether the save was successful.
- All Above
TransactionScope implementation provides the best pattern for saving multiple ObjectContext objects within a single transaction.
Use a Boolean flag to indicate the success of each save, which will tell you whether the save was successful.
Show Correct Answer
Source: MeasureUp.com | |
Alert Moderator