Ejemplo n.º 1
0
 public void TransactionalFlush(IsolationLevel isolationLevel)
 {
     if (!IsInTransaction)
     {
         BeginTransaction(isolationLevel);
     }
     try
     {
         _entityFrameworkContext.SubmitChanges();
         _transaction.Commit();
     }
     catch
     {
         _transaction.Rollback();
         throw;
     }
 }