What is the best way to prevent a property from changing after it was added to the database?
I know I can do it by tracking state when I am actually using the DbContext in the application. But then it's up to the programmer.
I would like this to be included in a DbContext override or inside the model configuration. Then it would work automatically and reject the change when someone tries to update the property.
One way to solve it would be by overriding ValidateEntity and check it there, but I am wondering if this is the best solution