我在哪里可以找到MvcTextTemplateHost API规范? [英] Where can I find the API specification for MvcTextTemplateHost?

查看:182
本文介绍了我在哪里可以找到MvcTextTemplateHost API规范?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用自定义模板,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.

这篇关于我在哪里可以找到MvcTextTemplateHost API规范?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆