资 源 简 介
This is a small, simple template-based code generator that connects to an ADO.Net database (currently SQL Server 2000 or 2005), supplies a table + fields context to an NVelocity template engine, and generates one or more templates for each table or view. I have already built templates for Active Record class in .Net 2.0, partial business support class that pairs with the Active Record class, SQL Server create / update / delete procedures, Data Dump generator that will create a set of insert statements from data in a table (use it to script records from one table and insert them into another table). As you can see, the code generator is not particularly limited to generating Castle Active Record classes.
As a kindness to those who just want to try it out, I checked in bin/release/executable, so you can grab the exe, config and all templates if you want to try it out. You are welcome to contribute other templates, patches, etc. Patches will only be merged if they are gener