C#C
C#3y ago
8 replies
Sygmond

❔ What’s the point of Database.BeginTransaction?

I’m trying to wrap my head around it, what is the main reason for using BeginTransaction?

Is it because we want to make sure that both Save transactions are done successful before Commit or is because you have to make sure Disposing will rollback the first transaction i.e. out of two transaction?

I find Disposing not Rollingback in time my transaction if I refresh the page.

The class that has the logic of transactions should be Disposable also or just using a “using” block is enough?

Thank you!
Was this page helpful?