The Castle ActiveRecord
project is an implementation of the ActiveRecord pattern
for .NET. The ActiveRecord pattern consists on instance properties representing a record in the database, instance methods acting on that specific record and static methods acting on all records.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.
Although ActiveRecord makes using NHibernate easy it does not hide all details of NHibernate behaviour. You need
to understand NHibernate flushing behaviour
and how to work with text/ntext columns