问题
I want to implement new T4 templates which should appear under Scaffold options in Add New Controller Dialog.
I have tried adding a new View tt template.I was able to add it. I need a reference where I can get basic information on how to create a new Controller template rather than modifying existing one.
Thanks Patil
回答1:
Have you had a look at MVCScaffolding? http://nuget.org/packages/MVCScaffolding/
You can easily override the controller t4 template using MVCScaffolding: http://blog.stevensanderson.com/2011/04/06/mvcscaffolding-overriding-the-t4-templates/
来源:https://stackoverflow.com/questions/14851371/add-new-custom-t4-template-in-add-new-controller-dialog-under-scaffold-options