Jump to content

ActiveRecord (Castle)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Jonorossi (talk | contribs) at 15:01, 10 February 2007 (Fixed the dead link). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

You must add a |reason= parameter to this Cleanup template – replace it with {{Cleanup|October 2006|reason=<Fill reason here>}}, or remove the Cleanup template.
ActiveRecord is an implementation of the Active Record pattern for the Microsoft .NET framework. It basically represents a row in the database with an ActiveRecord instance, and the static methods act on all rows. It is free, open source software that is distributed under the Apache 2.0 License. ActiveRecord is part of the Castle Project.

ActiveRecord uses NHibernate, but you don't need to write any fancy XML mapping as it handles everything for you. You just need to decorate your classes with attributes to declare behavior and meaning. You even don't need to express everything. ActiveRecord tries to infer as much as it can.