asp.net-mvc - ASP.NET MVC 中的脚手架 Controller

标签 asp.net-mvc asp.net-mvc-2 scaffolding

对于 ASP.NET MVC(v2 和 v3 RC)中的脚手架 Controller ,我们有哪些选择?我知道代码模板文件夹和 T4,但它只允许创建一个 .tt 文件,因此,用您自己的模板替换默认 Controller 模板,但我需要的是用于各种类型 Controller 的不同类型的模板。

我听说 Rails 对此有很大的支持。我也知道 MvcScaffold package in MVC 3 (via NuGet)正如 Scott Hanselman 所描述和开发的那样,它支持 ControllerWithContext 和 ControllerWithRepository 但我想更进一步,因为源代码尚未发布(至少我不知道)我无能为力自定义它。

你们用什么或做什么?

最佳答案

Generic Controller ( Controller<T> )技术。 super 粉丝。

关于asp.net-mvc - ASP.NET MVC 中的脚手架 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4337693/

相关文章:

c# - RDLC 和 asp.net mvc 中的深入报告

asp.net-mvc - ASP.NET MVC : generating action link with custom html in it

javascript - ASP.NET MVC 2 和动态 JavaScript

laravel - 最好的 Laravel 脚手架 Crud 生成器?

asp.net-mvc-3 - 在脚手架 View MVC3 中分页

react-native init 挂起/停止,没有错误

c# - 系统参数超出范围异常 : startIndex cannot be larger than length of string

asp.net-mvc - AngularJS 服务器端变量到 ng-init 和方法序列

asp.net-mvc - 单击列表 MVC5 中的按钮时在模式中显示不同的详细信息

asp.net - 是否可以对具有强类型资源的LabelFor,ValidationMessageFor,EditorFor使用数据注释?