You can do something like this ....
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions { IsolationLevel = System.Transactions.IsolationLevel.RepeatableRead })) { using (YeagerTechEntities DbContext = new YeagerTechEntities()) { Category category = new Category(); category.CategoryID = cat.CategoryID; category.Description = cat.Description;
source share