title: SaveChanges() in EntityFramework not saving changes. Showing "The function evaluation requires all threads to run"
body: <p>Following is my action code:</p>
  
  <pre><code>[HttpPost]
  public ActionResult AddCategory(Models.CategoryViewModel category)
  {
      try
      {
          if (ModelState.IsValid)
          {
              _context.Categories.Add(new Models.Category() { Name = category._Name });
              _context.SaveChanges();
          }
          var categories = _context.Categories.ToList();
          Models.CategoryViewModel categoryViewModel = new Models.CategoryViewModel()
          {
              _Category = categories.ToList(),
          };
          return View(categoryViewModel);
      }
      catch(Exception)
      {
          throw;
      }
  }
  </code></pre>
  
  <p>I can successfully fetch the data but <code>SaveChanges</code> is not working. I see no exception thrown in the catch block and I am getting this error during debugging:
  <a href="https://i.stack.imgur.com/dTyMZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dTyMZ.png" alt="enter image description here"></a></p>
  
  <p>I clicked the thread icon before <code>_context.Categories.Sql</code> but it only shows a <code>SELECT</code> query.</p>