title: EF with Azure - What would be the recomended way to handle transactions?
body: <p>Basically what I need is to to call DbContext.SaveChanges a few times and at the end, commit the transaction or rollback. 
  It is an MVC application based on .NET 4.5 and EF 5 hosted on Windows Azure.</p>
  
  <p><strong>-- EDITED --</strong></p>
  
  <p>I found out TransactionScope works well in Windows Azure as long as you only have a single connection (lightweight transaction).</p>
  
  <p>The exception I was getting was due to the fact that I was using DbContext and A Membership Provider inside the same transaction.</p>
  
  <p><a href="https://stackoverflow.com/questions/12321659/wrapping-membership-provider-and-dbcontext-on-single-transaction">I started a new post with more details and code here.</a></p>