Creating Code Smith Templates
page 1 of 5
Published: 20 Feb 2008
Code Smith is an awesome tool to generate code in the fashion you like. It can generate data access layers, business objects, LINQ queries, ASP.NET pages, and many other types of objects rather seamlessly. This article looks at building some templates and how it can make work easier, while creating code in the format you choose.
by Brian Mains
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 31080/ 36


CodeSmith generates code the way you want it.  It uses at template that is a mix of static text and dynamic scripts to create whatever you want it to create. The dynamic scripting in CodeSmith Studio resembles both ASP scripting tags and .NET inline ASPX code. CodeSmith Studio, as depicted below, contains many samples already setup for you that you can use, and these help in creating your own custom scripts.

CodeSmith also has an online community, where hundreds of other samples reside.  Not only that, they have a forum and blogs to help with some of the questions that there may be.

This article will discuss code generation, and show some examples of creating templates that generate code the way that I wanted it to be for my processes. You will see how it can be functional to generate code the way you want it as well.

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-04-19 2:10:46 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search