I have an action on a .aspx
file that runs multiple inserts in the database. I need that, in case something fails, the operation is canceled, since one record will depend on the other.
I usually use a transaction function to do this in other languages / frameworks (eg, PHP's Laravel).
Is it possible to do a transaction in C # / Webforms?