Ever find yourself writing the same type of code over and over again? While code generation isn't a panacea, it can certainly help speed up the development process and improve the reliability and maintenance of your code. In this article, Brian Boyce shows how a freeware product called Codesmith can be used to kick-start your projects by demonstrating the development of a set of templates to generate Select, Insert, Update, and Delete stored procedure code together with a corresponding C# data access layer to call the stored procedures.
|