Working with SQL / ADO made me think about what, in my opinion, should logically be included in the .net structure, and I was wondering if such a thing exists, let me explain.
Is there an object that is essentially a transaction manager that transmits commands (work items), and at the same time, I would suggest that you also need to perform rollback actions for each work item in the transaction.
for example
Suppose I wanted to do the following:
- Create a folder
- Create a file in this folder
- Perform some other tasks, such as editing reg keys or really an action that you can think of that can be thrown back.
Now, if something fails, I need to manually implement the rollback strategy, so maybe there is a way to manage these work items as a transaction using oob.net functions?
My considerations are that he will ask a lot about the failure of the elements automatically, but the possibility of manual control of what happens during the rollback to the work item seems practical.
Another thing that Microsoft has done with LINQ is really great, effectively having SQL queries for all kinds of things, not just SQL tables. So maybe there is some kind of transaction model with LINQ?
Thanks if you know something like this?
Jl.
source share