MyGeneration is an extremely flexible template based code generator written in Microsoft.NET.
MyGeneration is great at generating code for ORM architectures.
The meta-data from your database is made available to the templates through the MyMeta API.