Created
July 1, 2014 00:45
-
-
Save RyanABailey/f0ac23d97ebc4f6d1665 to your computer and use it in GitHub Desktop.
Transaction and EF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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