CodeSmith GeneratorYour code. Your way.
Faster.
CodeSmith Generator is a template-driven source code generator that automates the creation of common application code for any language: C#, VB, Java, PHP, SQL and more.
A template-driven source code generator.
CodeSmith Generator automates the creation of common application source code for any language: C#, VB.NET, Java, PHP, SQL and more. Templates use a syntax almost identical to ASP.NET, and you write their logic in C# or VB.NET, so if you know ASP.NET you can start writing templates right away.
Point templates at your database schema with SchemaExplorer to generate business objects, stored procedures, command wrappers and complete data access layers, or generate from XML and any other metadata. Generator ships with database, example, ActiveSnippet and framework template sets that you can modify, or write your own to generate code exactly the way you want it.
What can Generator do for you?
- 01Reduce repetitive codingStop hand-writing entities, procedures and plumbing that follow the same pattern.
- 02Fewer bugs, less timeGenerated code is consistent by construction, with no copy-paste mistakes.
- 03Your standards, enforcedTemplates encode your conventions so every file follows them.
- 04Any languageCreate custom templates for anything text-based: C#, SQL, TypeScript, XML.
Everything you need to automate code generation.
From a single template to large, complex generation scenarios across your whole solution.
Simple template syntax
Almost identical to ASP.NET. Write templates in C# or VB.NET and output any text-based language.
Visual Studio integration
Project integration, generate on build, and drag-and-drop templates onto the code surface.
ActiveSnippets
Snippets with the full power of Generator: execute logic and pull from database schema or XML.
Merge strategies
Preserve and InsertRegion merging keep generated and hand-written code side by side in one file.
SchemaExplorer API
A schema discovery API that makes working with tables, views, columns and procedures easy.
Rich XML support
XmlProperty gives you a strongly-typed object model and IntelliSense for XML metadata.
Generator projects
Automate generation consistently from Visual Studio, MSBuild, Explorer, the console, or Generator itself.
MSBuild & console
Generate during your build or batch-execute templates from the console client on any build server.
Debugging & caching
Pinpoint the exact template line that failed, and cache compiled templates for fast regeneration.
Pick the edition that fits how you generate.
| Feature | Generator $299 | Generator Server $499 | Generator SDK $1,499 |
|---|---|---|---|
| Authoring | |||
| Simple template syntaxASP.NET-style syntax in C# or VB | Included | Included | Included |
| Execute custom templatesCreate your own templates and run them | Included | Included | Included |
| Sub-template supportShare common code across templates | Included | Included | Included |
| Generator map supportNamed, dictionary-like lookups for templates | Included | Included | Included |
| Template debuggingLine numbers right where problems occur | Included | Included | Included |
| Metadata | |||
| Extensible metadataGenerate from any data source | Included | Included | Included |
| SchemaExplorer APISchema discovery for database objects | Included | Included | Included |
| Rich XML supportStrongly-typed XmlProperty object model | Included | Included | Included |
| Auto SQL script executionDeploy generated SQL automatically | Included | Included | Included |
| Generation & tooling | |||
| Generator APIGenerate outside the built-in integrations | Included | Included | Included |
| Template cachingReuse compiled templates for speed | Included | Included | Included |
| Merge capabilitiesMix generated and hand-written code | Included | Included | Included |
| Generator project supportConsistent, automated generation | Included | Included | Included |
| Console clientRun templates individually or in batches | Included | Included | Not included |
| MSBuild supportGenerate during your build | Included | Included | Not included |
| Desktop & IDE | |||
| Visual Studio integrationGenerate on build, drag & drop, regenerate | Included | Not included | Not included |
| Template editor & IntelliSenseStatement completion for your templates | Included | Not included | Not included |
| Template Explorer clientQuickly find and run templates | Included | Not included | Not included |
| ActiveSnippet supportSnippets powered by Generator | Included | Not included | Not included |
| Sample templatesDatabase, example & framework templates | Included | Not included | Not included |
Up and running in no time flat.
Generator ships with ActiveSnippet, Database, Example and Framework templates. Build business objects, document your database, script table data, and create stored procedures and command wrappers out of the box.
Learn the template syntax: build a stored procedure template
Simple, perpetual licensing.
Buy once and own it. Every license includes 30 days of Premier Support.
Generator
For a single developer. The complete Generator experience.
- Visual Studio integration
- Template editor with IntelliSense
- ActiveSnippets
- Batch generation & MSBuild
- Merge support & template caching
- Generator API for internal apps
Server
Run the API, MSBuild tasks or console client on a build machine.
- Console client
- MSBuild support
- Generator API
- Generator projects
- Merge support & template caching
SDK
Use the Generator engine and SchemaExplorer in an internal application.
- Full Generator engine API
- SchemaExplorer API
- Distribute Generator assemblies
- Runtime SDK license
Volume discounts
Applied automatically to your quote or purchase.
Upgrade pricing
Free with Premier Support. Otherwise:
Flexible purchasing
Pay by credit card or purchase order through the online store. Need a formal quote? Create one instantly and share it with procurement.
Answers from the people who build it.
Every Generator license includes 30 days of Premier Support. Renew within those 30 days and there are no catch-up costs.
Premier Support
- Free upgrades while your subscription is active
- Priority support queue with a 48-hour response time
- Renew any time to keep coverage going
Questions, answered.
Is there a free trial?
Yes. Download CodeSmith Generator and register for a free trial. If you're already registered, just log in to skip straight to the download.
Do I get free upgrades?
Customers with an active Premier Support subscription upgrade for free. Without Premier Support, discounted upgrade pricing is available from previous versions.
What does support cost without Premier Support?
Users without Premier Support are charged a $99 support fee per incident. Every license includes 30 days of Premier Support, and renewing within that window means no catch-up costs.
Can I pay with a purchase order?
Yes. You can purchase from the online store by credit card or purchase order.
Do you offer volume discounts?
Orders of 3 or more licenses are automatically discounted 15%, 5 or more 20%, and 10 or more 30%. The discount appears on your quote or purchase price.
Can I redistribute the Generator engine in my own app?
Yes, with an SDK license. The Commercial SDK license allows royalty-free use of the Generator engine in an approved commercial application. Contact sales for details and restrictions.
Try CodeSmith Generator free.
Download the trial and generate your first data layer in minutes.