Entity Framework - Generic Transaction Methods -
we're using transactions entity framework, might switching other orm in future. what's best way implement following...
begintransaction(); //some update/insert/delete operations here entity.name = "joe"; savechanges(); endtransaction();
- we don't want use "using" statement
- we need work nested transactions
you can use transactionscope ... , can nest in try/catch/finally if want to, though "using" statement easier. there specific reason don't want use "using"? i've used both quite success, , supports nested transactions.
Comments
Post a Comment