How to make Transaction in linq?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bryian TanRank #396 · 6.3K reputationPosted Apr 10, 2013, 7:14 PM EDT
http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 10, 2013, 7:55 PM EDT
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.