I use a BaseController to wire up my service layer. All other controllers inherit this controller. Now I’m embarking on building an MVC2 project template. I would like controllers to inherit this by default, not just the “: Controller”, but have no idea how to approach this.
I use a BaseController to wire up my service layer. All other controllers inherit
Share
You can use custom t4 templates to do this
http://www.davidhayden.me/2009/11/aspnet-mvc-and-t4-templates-generating-controllers-and-views.html