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.

30 days of Premier Support included Credit card or purchase order
What is CodeSmith Generator?

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.
Features

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.

Compare editions

Pick the edition that fits how you generate.

FeatureGenerator
$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
Templates 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

Pricing

Simple, perpetual licensing.

Buy once and own it. Every license includes 30 days of Premier Support.

Server

Run the API, MSBuild tasks or console client on a build machine.

$499/ server
One-time purchase · no GUI client Buy Server
  • Console client
  • MSBuild support
  • Generator API
  • Generator projects
  • Merge support & template caching

SDK

Use the Generator engine and SchemaExplorer in an internal application.

$1,499/ app
One-time purchase · license terms Buy SDK
  • Full Generator engine API
  • SchemaExplorer API
  • Distribute Generator assemblies
  • Runtime SDK license
SDKCommercial SDK$2,999Royalty-free use of the engine in an approved commercial application.Contact sales
EnterpriseSite License$2,99925 developers at a single location of your enterprise.Buy site license
EnterpriseEnterprise License$4,999Unlimited developers at any location within your enterprise.Buy enterprise
Add-onPremier Support$99 /user/yrFree upgrades and priority support while active.Learn more

Volume discounts

Applied automatically to your quote or purchase.

3+ licenses 15% off
5+ licenses 20% off
10+ licenses 30% off

Upgrade pricing

Free with Premier Support. Otherwise:

Generator 6.5 → 8.5 $149
Professional 3.x–6.0 → 8.5 $209
Standard 3.x–5.x → 8.5 from $249

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.

Premier Support

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

$99/ user / year
  • Free upgrades while your subscription is active
  • Priority support queue with a 48-hour response time
  • Renew any time to keep coverage going
FAQ

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.