0

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?

bergin
  • 1,584
  • 2
  • 13
  • 21

1 Answers1

1

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
  • 24,079
  • 20
  • 92
  • 147
  • 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 Jun 07 '10 at 08:41
  • http://stackoverflow.com/questions/224689/transactions-in-net appears to be the sort of answers I wanted here – bergin Jul 11 '10 at 21:41