Is it possible to customize asp.net mvc 3 generated views?

I've been using asp.net mv3 through vs 2010 for quite some time now, and the default views and actions created when the controller is created are very helpful. However, lately I've found it superfluous to add the same in the generation view, for example I need to put the class names "btn" in links and buttons since im using a third party css library. So I was wondering if it is possible to customize the generated views so that I don't have to add more after generating the view?

image → http://i.stack.imgur.com/J8Aiz.png

+3


source to share


1 answer


Yes, it is possible to customize the built-in TT templates that were used for the pads.

Here's a good way: Changing default generation / scaffolding templates in ASP.NET MVC



If you are more into construction work, the MVC Scaffolding project might be of interest to you.

+4


source







All Articles