TCCC 7
This past Saturday (October 24, 2009) I had the privilege of speaking at Twin Cities Code Camp 7. I spoke on T4 and how developers can use this awesome, little known tool that ships with Visual Studio 2008/2010 to start generating code and making their development lives easier. I walked through the basic composition of a T4 template, then showed some real world examples (i.e. T-SQL, Entity Framework, Linq 2 SQL, ASP.NET MVC, design patterns) of how T4 is currently being used today.
You can download the slide deck and demo code here.
In order to run the code you’ll need the following installed:
- Visual Studio 2008 SP 1
- ASP.NET MVC 1.0
- SQL Server 2008 Express
- AdventureWorks database from CodePlex
After installing the AdventureWorks database, you’ll need to run the SimpleEmployee.sql script included in the archive. This will create the SimpleEmployee table and populate it with data.
If you weren’t able to attend my session, or would like to get into even more in-depth with T4 you can check out the podcast I did with Jeff Brand along with a series of screencasts I did on the topic here.