Atomic: Atomic means that all the statements (SQL statement or operations) that are a part of the transaction should work as atomic operation ie either all are successful or all should fail. i want to know if there is any way of implementing atomic actions in C#?
You could use the TransactionScope
class for this purpose, which
Makes a code block transactional
For implementation details, please have a look here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.