Add new Custom T4 template in Add New Controller Dialog under Scaffold options

℡╲_俬逩灬. 提交于 2020-01-13 03:41:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!