This article will present a basic design pattern and the templates to generate code for the design pattern.
The benefit of using templates in code generation is the ability to enforce design methods and standards while saving development costs for any application.
By definition, templates are repeatable patterns, which can be derived from any design methods. When developing applications, templates can save you a lot of time by using common design patterns for generating different business objects. 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. Design documents, coding standards, and code review were the only tools a developer had to work with in the golden days of coding. One of the biggest issues a developer faces when developing a large application, is maintaining design standards and methods.