views:

66

answers:

2

Existing Model, Controller and View, all working well.

Due to a requirement change, there is suddenly a change in the db schema, need to add a few new fields.

Database is updated, model (ADO.NET Entity) is refreshed from database and new fields are picked up. Controller is OK since it is working with the "set" and keying off the PK. The view when originally created was strongly typed against the model (as it was at the time)....

Is there an easy way to "refresh" the existing view to pick up the new fields?

Or will this always be a manual addition or where you would need to create a "newer" view to replace the previous view?

Thanks!

+2  A: 

On the slim chance you're using the exact view created by the "add view" command, you can just delete/re add it. Otherwise, you can add a new temporary view, copy over the new/changed fields and then delete your temporary view.

No Refunds No Returns
+1  A: 

Editing the view is an option.

çağdaş