I\'ve been looking for a proper way to mark a property to NOT be changed when updating a model in MVC.
For example, let\'s take this small model:
cla
Anyone looking for how to achieve this on EF Core. It's basically the same but your IsModified needs to be after you add the model to be updated.
db.Update(model); db.Entry(model).Property(x => x.Token).IsModified = false; db.SaveChanges();