views:

74

answers:

1

Hi,

Was wondering if there are any transactions support in asp.net for MVC 2? i.e. commit & rollback?

I have a few slightly risky db transacts which i'd prefer firmed up with transactions.

could the system transactions namespace be incorporated into a respository of db calls?

+1  A: 

Transaction support is the same in MVC as it is in WebForms. Your transaction code will be done on the back-end so the fact thats it's MVC is irrelevant. ...unless I didnt understand your question?

Mark Redman
Yes, thanks, was having a problem finding any sample code that allows me to run a rollback, so needed some reassurance that there was transaction support.
bergin
http://stackoverflow.com/questions/224689/transactions-in-net appears to be the sort of answers I wanted here
bergin