ASP.NET MVC provides the ability to select a ‘Scaffold template’ upon which a newly-created view will be based (Add View > Create a strongly-typed view > Scaffold template).
Is it possible to create your own Scaffold Template? And if so, how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ASP.NET MVC uses T4 templates. Here’s an overview.
Here are the steps:
install-package mvc3codetemplatescsharpCodeTemplatesfolder will be added to your project containing the templatesFrom here you could either modify the existing templates or add new one.
Or if you want to modify those globally you could to this in the
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC 3\CodeTemplates\folder.