Documentation

Guides and reference for CodeSmith Generator and the CodeSmith frameworks: install Generator, write templates, generate from databases, automate builds.

Getting started with CodeSmith Generator? Begin with installing Generator, then work through the tutorials. Writing your own templates? The template syntax reference covers directives, properties and metadata. Using PLINQO, CSLA or NHibernate? The frameworks section covers the template sets that ship with Generator. Using an older version, such as CodeSmith 5.x? PDF copies of the original documentation are in the archive.

CodeSmith Generator Getting started Learn what CodeSmith Generator does, check the requirements, then install and activate it. CodeSmith Generator Tutorials Step-by-step CodeSmith Generator tutorials: generate code from a sample template, write your first template, and use database metadata. CodeSmith Generator Using CodeSmith Generator Find your way around the CodeSmith Generator tools: Visual Studio, Template Explorer, Template Editor, Schema Explorer, Map Editor, projects and the console. CodeSmith Generator Writing templates An overview of CodeSmith Generator template syntax and a learning path from the basics to metadata-driven templates. CodeSmith Generator Advanced topics Preserve custom code with merge strategies, extend Generator with base templates, custom properties and schema providers, and fix database connections. CodeSmith Generator Reference CodeSmith Generator FAQ, tips, sample templates, Premier Support, license agreement and trademarks. CodeSmith Generator Generator API Run CodeSmith Generator templates from your own .NET code, and find the Generator API reference online or offline. Frameworks PLINQO for LINQ to SQL PLINQO is a set of CodeSmith Generator templates that replace and enhance the LINQ to SQL designer, in C# and Visual Basic. Frameworks PLINQO for Entity Framework PLINQO for Entity Framework is a set of CodeSmith Generator templates that replace and enhance the Entity Framework designer, in C#. Frameworks PLINQO for NHibernate PLINQO for NHibernate is a set of CodeSmith Generator templates that generate and safely regenerate your NHibernate mappings, entities and queries in C#. Frameworks CSLA templates CodeSmith Generator templates that generate CSLA .NET business objects and a data access layer from your database, in C# and Visual Basic.