Reputation: 1421
What are the good and bad points of the TransactionScope
class in C#?
Thanks.
Upvotes: 8
Views: 3040
Reputation: 107327
Just to add to / clarify the points Incognito makes:
The only 'bad' side is that you need to be aware that:
Upvotes: 0
Reputation: 16597
Some advantages from MSDN :
TransactionScope Benefits
Upvotes: 5
Reputation: 43217
Good side:
Can do transactions beyond database context. Insert record into db. Write file to disk.
Bad side:
Requires MSDTC access on client machine, where TransactionScope is used.
Upvotes: 3