concept Update method in category entity framework

This is an excerpt from Manning's book Entity Framework Core in Action.
The Updatemethod is a welcome new command in EF Core. In EF6.x, you have to useDbContext.Entry(object).Stateto achieve that feature.
9.3.5 The Update method—telling EF Core that everything has changed
The
Update/UpdateRangemethods aren’t the normal way of updating an entity. You typically do that by changing a property and callingSaveChanges, which I’ve just described. TheUpdatemethod is useful if you want to update all the data in the database for an entity instance. TheUpdatemethod is normally applied to untracked entities—say, from an external source. (Figure 3.3 showed an example.)The
Updatemethod tells EF Core to update all the properties/columns in this entity by setting the given entity’sStatetoModified, and sets theIsModifiedproperty totrueon all nonrelational properties, including the foreign key, in the entity class. This means the row in the database will have all its columns updated.

This is an excerpt from Manning's book Entity Framework 4 in Action.
The Update method takes the customer back and updates it.