Question

When I rename a property in a class of my model (CS file), I usually go to the view and update the it (CSHTML file), since VS doesn't propagate that change into view classes.

Is there a simpler way? I'd like to have a go get them, boy button that recreates the view. Of course, it needs to be smart enough to only update the relevant changes and not recreate the whole shabang (in which case all my fronend magic would go poof and I'd go insane).

Was it helpful?

Solution

You can use refactor => rename from visual studio. Or you can use a tool like resharper to do the renaming. It's smart enough to change all the references.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top