AFO Castle ActiveRecord Model Code Generator

This application will read a Microsoft SQL Server 2005/2008 database schema and generate Castle ActiveRecord C# classes.

This application was built with T4 and is, or will be, available in three flavors:

  1. Windows Application - Free Edition - Supports code generation for simple, straight-forward convention based databases. (aka Convention Only - available now!)
  2. Windows Application - Commercial Edition - $30 - Supports code generation for complex "legacy" databases. (aka Complex Model Support - available now!)
  3. T4 Template - $400 - A template based solution for simple, straight-forward convention based databases.

The T4 template edition allows for complete control over the code that is generated and is the same template that underlies the free Windows application edition.

The commercial windows application edition has the following features not available in the other versions:

  1. Support for non-identity, non-guid (aka natural or non-surrogate) primary keys
  2. Support for composite keys (outside of simple many-to-many join tables, which are supported in the free edition)
  3. Support for user defined types
  4. Support for table and column names that contain spaces

Both .NET 3.5 and 4.0 are supported (Visual Studio 2008 & 2010).

Windows Application - Convention Only: FAQ - Help
Windows Application - Complex Model Support: FAQ - Help