title: .NET Core 2 - EF Core Error handling Save changes
body: <p>I'm used to Entity Framework 6 and my <em>base</em> repository Save() looks like this:</p>
  <pre><code>public void Save()
  {
      try
      {
          Context.SaveChanges();
      }
      catch (DbEntityValidationException ex)
      {
          // Do stuff
      }
      catch (Exception exception)
      {
          // Do stuff
      }
      else
      {
          throw;
      }
  }
  </code></pre>
  <p><code>DbEntityValidationException</code> is an expected error from Entity Framework if the object save is invalid. Now that I'm on a new .NET Core 2 project. What is the <em>expected</em> entity validation error type in Entity Framework Core?</p>