Skip to content

Instantly share code, notes, and snippets.

@RyanABailey
Created July 1, 2014 00:45
Show Gist options
  • Save RyanABailey/f0ac23d97ebc4f6d1665 to your computer and use it in GitHub Desktop.
Save RyanABailey/f0ac23d97ebc4f6d1665 to your computer and use it in GitHub Desktop.
Transaction and EF
try
{
using (TransactionScope transaction = new TransactionScope(TransactionScopeOption.RequiresNew, transOptions))
{
// EF calls here
transaction.Complete();
}
}
catch
{
throw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment