Chances are you have never heard of T4. Don’t worry, most haven’t. This tool was introduced when the DSL tools hit the market. As the name implies, it’s a code generation engine. It’s my understanding, T4 is used under the scenes by the DSL tools to generate out it’s artifacts. This is also the tool that things like Linq to SQL and the Entity framework use to generate its artifacts. Very Cool, and a bit daunting at first.
There are a number of great resources on Code Generation. I don’t want to recover what has been written better than I could but I do want to talk about the start of my journey with T4. So like anyone I hit the ole WWW in search for answers. The following resources got me rolling:
Needless to say you don’t really need anything to get started. I don’t want to rehash anything already stated above, but I do want to cover a few good little hints I have learned so far.
I will indeed post more on T4. It’s just amazing and we all should use it more. As I do it more and more I find myself coming up *MUCH* more creative ways to generate the same artifact with less.
More to come…..
Powered by: newtelligence dasBlog 2.3.9074.18820
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
E-mail
Theme design by Jelle Druyts