Castle ActiveRecord is an implementation of the ActiveRecord pattern for .NET. Castle ActiveRecord is built on top of NHibernate, but its attribute-based mapping frees the developer of writing XML for database-to-object mapping, which is needed when using NHibernate directly.