How to auto Update Views based on Changes Made to Model?
For example, when adding a new controller and specifying a template (mvc
controller with read/write actions and views using entity framework) and a
Model Class, MVC does the magic and creates a view that corresponds to
every action in the controller, the views might include a form and data
details.
Next, I update the model class with a new property: public string Location
{ get; set; }
Then update the database accordingly.
Now I would like this change to be reflected in the controller's views as
well; for example, a new Location label and textbox in the Create
view...etc
Is this possible, or does it have to be done manually? This could be a lot
of work if a lot of changes to be made to the Model.
No comments:
Post a Comment