concept Update method in category entity framework

appears as: n Update method, The Update method, Update method, Update method
Entity Framework Core in Action

This is an excerpt from Manning's book Entity Framework Core in Action.

  • The Update method is a welcome new command in EF Core. In EF6.x, you have to use DbContext.Entry(object).State to achieve that feature.
  • 9.3.5 The Update method—telling EF Core that everything has changed

    The Update/UpdateRange methods aren’t the normal way of updating an entity. You typically do that by changing a property and calling SaveChanges, which I’ve just described. The Update method is useful if you want to update all the data in the database for an entity instance. The Update method is normally applied to untracked entities—say, from an external source. (Figure 3.3 showed an example.)

    The Update method tells EF Core to update all the properties/columns in this entity by setting the given entity’s State to Modified, and sets the IsModified property to true on all nonrelational properties, including the foreign key, in the entity class. This means the row in the database will have all its columns updated.

    Entity Framework 4 in Action

    This is an excerpt from Manning's book Entity Framework 4 in Action.

    The Update method takes the customer back and updates it.