LPLN
LPLN

Reputation: 473

How can I roll back insert or delete on database in Mvc core

In MVC core 2.2 we can use savechanges method after database actions(Insert/Delete/Edit). Now my question is:

Is there any way to roll back my actions after calling savechanges or is there any method to do it?

please guide me!!

Upvotes: -1

Views: 347

Answers (1)

alex
alex

Reputation: 412

you can do rollback with SqlTransaction.

Upvotes: 1

Related Questions