Forest Controllers in ASP.NET MVC

What parameters do we have for forest controllers in ASP.NET MVC (v2 and v3 RC)? I know about the folder of code templates and T4, but it allows you to create only one .tt file and, thus, replace the default controller template with your own, but I need different types of templates for different types of controllers.

I heard that Rails has tremendous support for this. I also know that the MvcScaffold package in MVC 3 (via NuGet) is described and developed by Scott Hanselman, which supports ControllerWithContext and ControllerWithRepository, but I would like to do this further, and since the source code has not been published (at least I haven’t I know about this), I can’t configure it.

What are you guys using or doing?

+3
source share
1 answer
+3
source

Source: https://habr.com/ru/post/1778142/


All Articles