
T4
Scaffolding
Design-Time Code Generation by using T4 Text Templates
Code Generation and T4 Text Templates
Watch Overview on Channel 9 Text Template Transformation Toolkit (T4) is a template-based code generation engine. It is included with Visual Studio 2008 and available as a download for Visual Studio 2005 in DSL and GAT toolkits. You can use T4 templates to generate Visual Basic, C#, T-SQL, XML or any other text files.
T4: Text Template Transformation Toolkit
This post is a part of the series that introduces code generation with Text Templates (also known as T4 Templates) in Visual Studio using C# and Visual Basic; explains how to create reusable templates and combine them in complex code generators. In order to follow examples in this article, you need to have Visual Studio 2008 or 2010 Standard Edition or higher, SQL Server 2005 or later, T4 Toolbox and T4 Editor installed on your computer. Introduction In the first article of this series, we created the following text template to generate a DELETE stored procedure for a given database table using SMO . This stored procedure is one of the CRUD procedures that would need to be created to encapsulate access to this table.

