Where can I find the API specification for MvcTextTemplateHost?

后端 未结 5 1738
迷失自我
迷失自我 2021-01-02 18:53

I\'m trying to use a custom T4 template for adding new Controllers to a MVC 3 project. I have my own template as Scott Hanselman wrote on http://www.hanselman.com/blog/Modif

5条回答
  •  一生所求
    2021-01-02 19:23

    You'll find that this is only extensible to a point. Instead spend time with the new MvcScaffolding package from Steven Sanderson. He's extended this original stuff WAY WAY beyond my plans.

    • Introduction: Scaffold your ASP.NET MVC 3 project with the MvcScaffolding package
    • Standard usage: Typical use cases and options
    • One-to-Many Relationships
    • Scaffolding Actions and Unit Tests
    • Overriding the T4 templates
    • Creating custom scaffolders
    • Scaffolding custom collections of files

提交回复
热议问题