Introduction
One of the biggest issues a developer faces when developing a large
application, is maintaining design standards and methods. Design
documents, coding standards, and code review were the only tools a
developer had to work with in the golden days of coding. With the birth
of code generators such as CodeSmith, development teams are now armed
with a powerful tool to expedite the development process and maintain a
standard throughout the application. When developing applications,
templates can save you a lot of time by using common design patterns
for generating different business objects. By definition, templates are
repeatable patterns, which can be derived from any design methods. The
benefit of using templates in code generation is the ability to enforce
design methods and standards while saving development costs for any
application. This article will present a basic design pattern and the
templates to generate code for the design pattern.
http://www.codeproject.com/csharp/BusnessObjectGenerator.asp