This section introduces transactional components and the benefits of running components within the same transaction.
Scenario: Composing Work from Multiple Components Under the Same Transaction Add new functionality to transfer money between accounts by adding a new component, MoveMoney, which uses the existing Account component. |
|
Creating the MoveMoney Component Use the CreateInstance method to run the MoveMoney and Account components within the same transaction. |
|
Monitoring Transactions Use the Bank client to run your components, and use the Microsoft Transaction Server Explorer to monitor transactions. |
|
Application Design Notes: Using Context and Transactions Using transactional components provides atomicity and simplified error recovery. |
Transactions, Transaction Attributes, ObjectContext object, CreateInstance method