An Open Source Code Generator - SmartCode - Reads Database Schema - Templates Generate Code
Source: David Hayden ( Sarasota Florida Web Design ) Filed: .NET Code Generation Tools
You have to love the wide variety of code generation options available for the .NET Developer Community. Between code generation tools and O/R Mappers, small to medium-sized applications shouldn't take as much effort. Of course, you do have the learning curve of the code generator :)
SmartCode is an open source code generator shown on CodeProject described as follows:
“SmartCode is a 100% Open Source template-driven code generator tool (Released under both BSD license and Lesser GPL library license). with the next features:
- SmartCode operates by reading a database schema, allowing the user to set certain extended properties for tables and columns, and applying templates to each table in order to generate code.
- SmartCode main building blocks are Tables,Views, columns, and top level project definition.
- In SmartCode , a template is a program that generates text (which is generally code in a programming language), and may be written in C# or VB.NET (or theoretically in any .NET language that supports the creation of dynamic-link libraries, or DLLs).
- A template library (or library, for short) is a logical grouping of templates. A template takes as input a model and an Table or View to generate the code
- Allow you to build fully-functional prototypes of web-based applications that interact with database systems.
- Fast, Because your libraries templates are compiled code and does not need parser script expressions
- Use Visual Studio to access to SmartCode object Model and debug your templates!
- Easy to extend, allow you create your custom drivers for access to other databases, and add custom properties to customize the code generation “
Maybe worth checking out if you enjoy template based code generators. Learn more here.
Feed: David Hayden ( Sarasota Florida Web Design )
Filed: .NET Code Generation Tools