开发者

Where are the built in MVC scaffolding T4 templates?

开发者 https://www.devze.com 2023-04-01 01:27 出处:网络
With the newest MVC tools, when I add a controller, I get scaffolding for the controller code as well as the CRUD Views.I\'m not asking about how to override templates.I understand that I can override

With the newest MVC tools, when I add a controller, I get scaffolding for the controller code as well as the CRUD Views. I'm not asking about how to override templates. I understand that I can override the T4 scaffolding templates, but I would like to see the existing built-in scaffolding开发者_JS百科 templates that support the default code generation.

Where can I find the T4 code that supports the built-in/default scaffolding for MVC Views and Controllers?


Per Hansleman:

C:\Program Files (or x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp (or Visual Basic)\Web\MVC (or 2) 3\CodeTemplates
0

精彩评论

暂无评论...
验证码 换一张
取 消