I think of using transactions in two-layer WPF applications (Windows forms) as follows:
We can start a new transaction when we open a new form for editing data, editing and saving changes transparently in this transaction. Then we can click the "OK" button and complete the transaction, or the "Cancel" button and cancel it. If we want to open another dialog box with this data, we can use nested transactions.
The question arises: is this method of using transactions permissible or not? I know that there are many ways to implement this logic, but I would like to list the advantages and disadvantages of this.
source
share