How to make Transaction in linq?
How to make Transaction in linq?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Apr 10, 2013, 11:55 PM
hi,
Transaction scope is good option.
if you are entity framework user than you can call single SaveChanges() method with in single savechanges() method EF is internally maintain transaction scope
please refer
http://msdn.microsoft.com/en-us/library/vstudio/bb738523%28v=vs.100%29.aspx
http://blogs.msdn.com/b/nikhilsi/archive/2012/06/07/entity-framework-transaction-scope-examples.aspx
hope this will help you.
Bryian TanPosted Apr 10, 2013, 11:14 PM
http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx