Tutorials
CodeSmith Generator has a lot of depth, but you can start getting value from it quickly. These tutorials walk you through common code generation scenarios, from running a template that ships with Generator to writing a template that reads your database schema. Work through them in order.
| Tutorial | What you learn |
|---|---|
| Generate code from a sample template | Use Template Explorer to open a template, set its properties and generate a strongly typed hash table class. Takes about five minutes. |
| Writing your first template | Write a template from start to finish: start from the output you want, add dynamic content and declare properties. |
| Writing a template with database metadata | Use SchemaExplorer and enumerated properties to generate a complex T-SQL script from a database table. |