There are entities derived out of context. They need to be updated in the database (if there are changes).
To update the record, you need to tighten its copy from the database, and then compare all the fields. And if the contents of the fields are different, set EntityState.Modified .
The question is compared fields.
Now I compare through redefined Equals for models. But can there be a standard Entity Framework for this purpose? Constantly update Equals , if the models have changed, I do not want to. It would be great if the context.Users.Update(user) could be done so and he himself compared everything.