Earlier this week, I wrote a post on using a BuildProvider to create ActionLink helpers . That approach was using CodeDom to generate the code, and there was quite some user interest in it (and Phil blogged it , which helped!). Then yesterday, I wrote a post on the Pros and Cons of using CodeDom vs T4 templates for source code generation . They are drastically different approaches, and while both have their strengths, T4 has definitely been getting more buzz lately. The logical follow-up to those two posts is a discussion on using T4 templates to generate MVC strongly typed helpers. The general idea here is to use the existing ASP.NET extensibility points (BuildProvider and ControlBuilder), but rely on T4 templates to produce...(read more) ...
Go to the complete details ...