ActiveRecord CodeSmith Template

I have been working on a CodeSmith (http://www.codesmithtools.com) template for ActiveRecord (http://www.castleproject.org) . The template currently works for single column primary keys and one-to-many, many-to-many, and many-to-one relationships. The template is intended for .NET 2.0 and uses partial classes for the ActiveRecord objects so that if you regenerate the code, you will not lose any changes as long as you did not modify the generated code. The template also will generate some test stubs. I expect all of the methods to implement a CRUDTest

There is also some logic in the MakeSingular method for certain types of table name ending that do not need to be changed or do not follow the common rules for how to take something from plural to singular.

Feel free to modify this template. If you find any bugs please let me know.

Download the template


Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

January 5. 2009 12:03 PM