MVC4
Modifying entity class error
Store update, insert, or delete statement affects the number of rows unexpected (0). Entities may be modified or removed after loading. Refresh ObjectStateManager items.
Solution: The primary key field assignment
Reproduced in: https: //www.cnblogs.com/kevinGao/p/4188725.html