我在哪里可以找到MvcTextTemplateHost API规范? [英] Where can I find the API specification for MvcTextTemplateHost?
问题描述
我试图使用自定义模板,T4添加新控制器到MVC 3项目。我有我自己的模板斯科特Hanselman提供的<一个写href=\"http://www.hanselman.com/blog/ModifyingTheDefault$c$cGenerationscaffoldingTemplatesInASPNETMVC.aspx\">http://www.hanselman.com/blog/ModifyingTheDefault$c$cGenerationscaffoldingTemplatesInASPNETMVC.aspx,但我感兴趣的是挖一点在 MvcTextTemplateHost 的类,看看还有什么它提供的,所以我们可以自定义多一点我们的控制器,看看它是如何与添加控制器进行交互。 ..对话框。
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/ModifyingTheDefaultCodeGenerationscaffoldingTemplatesInASPNETMVC.aspx, but I'm interested in digging a bit more in the MvcTextTemplateHost Class to see what else it offers, so we can customize a bit more our controllers, and see how does it interact with the "Add controller..." dialog.
但我不能找到引用这个类(在谷歌搜索,当然......之后),也无论是MSDN任何其他MS网站...任何想法?
But I cannot find (after searching at Google, of course...) the reference to this class, nor MSDN either any other MS site... any ideas?
谢谢,
塞尔吉
Thanks, Sergi
推荐答案
您会发现,这仅仅是可扩展的一个点。相反,花时间与史蒂芬·桑德森新MvcScaffolding包。他扩展了这种原始的东西WAY远远超出了我的计划。
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:脚手架您的ASP.NET
MVC 3项目的MvcScaffolding
包 - 标准用法:典型
用例和选项 - One-to-Many关系
- Scaffolding动作和单位
测试 - Overriding在T4
模板 - Creating习俗
架子工 - Scaffolding习俗
文件集合
- 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
这篇关于我在哪里可以找到MvcTextTemplateHost API规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!