Transaction Issues
When you get to the point of utilizing transactions, you must make sure that an action or a series of actions are completed successfully, or you want to make sure that everything gets rolled back if there is a problem during the process. To get started, you’ll look at some of the basics of transactions before you look at how to debug them.
Transaction Models
The .NET Framework uses two basic transaction models:
Automatic —Automatically aborts or completes the transaction
Manual —Requires you to call SetComplete or SetAbort
The amount of control that you want over the processing of your transaction determines which method you use. In most cases, the automatic model should suffice. For a managed object to participate in an automatic ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access