T4 Adoption continues with ASP.Net MVC Tools

Ok, the big guns are pitching in now :-)

Hot on the heels of the tooling for LINQ-to-Entities folks adopting T4 for their next release, comes another.

Scott Guthrie just blogged about a new RC of ASP.Net MVC that will shortly be coming along.  It's a long post, but down in the section on view templates in the scaffolding system, he mentions that they use T4 as a one-time generation technology to set these up based on your data.

Of course, this means that the generation is fully customizable.

I'm seeing the beginnings of a trend where product groups are finding they can get often-requested features for code generation customization by going the T4 route rather than hardcoding CodeDOM trees or some other tough to modify solution.

All isn't perfect, as of course this type of customizatio tends to require comparison of product and user templates when new versions of things come out.  See Oleg's excellent encapsulation techniques (Nested Template Class especially) for ways to mitigate that.

Published 12 January 09 11:52 by GarethJ

Comments

# Kevin Daly said on January 12, 2009 9:44 PM:

It's cool for sure, but for how long has "just" meant "almost a month ago"?

Just wondering.

# GarethJ said on January 12, 2009 9:48 PM:

Fair point - let's say in the discontinuous, uneven intrapost timeline of my blog

New Comments to this post are disabled

Search

This Blog

Disclaimer
The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion.
All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Tags

Archives

Architects who Model

DSL Tools Team

Links

Syndication

Page view tracker