Error!
Success!

Using Custom T4 templates To Generate Better Controllers in ASP MVC

0
kicks

Using Custom T4 templates To Generate Better Controllers in ASP MVC  (Unpublished)

While working on this asp.net mvc project at work i couldn't help notice that there are lots of code that is getting copy-pasted from one controller to the other, when i am adding a new controller. now as you know mvc fm comes with a set of T4 templates that lets you add views and controllers in such a way that some code in these views and controllers are generated for you. this is grate. but you can customize the original templates to your needs and make them generate more of the code for you. (please note that i am talking about controllers that are responsible for mostly CURD on a given single model.)....


Kicked By:
Drop Kicked By: