Author: David Ebbo's blog | Posted on: 6/17/2009 8:34:00 AM | Views : 821

A couple weeks ago, I blogged about using a Build provider and CodeDom to generate strongly typed MVC helpers at runtime. I followed up a few days later with another version that used T4 templates instead, making it easier to customize. And now I?m back with yet another post on this topic, but this time with a much simpler and improved approach! The big difference is that I?m now doing the generation at design time instead of runtime. As you will see, this has a lot of advantages. Drawbacks of the previous runtime approach Before we go and re-invent the wheel, let?s discuss what the issues with the runtime T4 approach were, and how this is solved by this new approach. Complex configuration : to enable the runtime template, you had to add a DLL...(read more) ...

Go to the complete details ...