I principi fondamentali della Overposting
Then you can create a Student entity using the original values, call the Attach method with that original version of the entity, update the entity's values to the new values, and then call SaveChanges. For more information, see Entity states and SaveChanges and Local Data.The scaffolded code for the Students Index page left out the Enrollments prop