Entity Framework validation with partial updates
If you use partial updates or stub entities (both approaches are pretty valid!) you cannot use global EF validation because it doesn’t respect your partial changes – it always validates whole entity. With default validation logic you must turn it off by calling mentioned: dbContext.Configuration.ValidateOnSaveEnabled = false And validate every updated property separately. This should … Read more