DbContext does not store validation errors; it validates entities every time you call DbContext.GetValidationErrors() or DbContext.SaveChanges() . So, if you have an invalid object that is being monitored by your context, DbContext.GetValidationErrors() will always return errors. You need to separate or correct an invalid object / entities, and the error will disappear, since invalid objects tracked by your context will not be found.
Pawel source share