Thanks in advance for your time 🙂
I am working on an MVC3 application and a related database project in visual studio 2010 professional. I am switching between the projects as I revise database structure.
I’d like to know are there any tricks for updating the controllers and views in my mvc application? Updating the model (edmx and tt files) is a piece of cake. but it seems to be a huge chore to recreate the model and views without simply deleting them and starting over.
Deleting and starting over wouldn’t be too bad if it didn’t cause me to loose customization of the views and wreak havoc with my svn system…
Thanks again for any thoughts!
No, the code generation templates are meant to be run from the start, they are not intended to do change management of your controllers and views. If you have a standard template that you want to use, you can always use the T4 templates to create your own that will generate code that is closer to the end result you want.
But that is your only option, other than coding it by hand.