Castle ActiveRecord
Modified on 2011/03/14 22:40 by Henry Conceição — Categorized as: Uncategorized
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.
Warning
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
.
Reference Manual
¶
Attributes
ActiveRecord operations
Understanding Scopes
Validators
Xml Configuration Reference
User's Guide
¶
Configuration and initialization
Web apps considerations
Creating an ActiveRecord class
The Persistency Lifecycle
Primary key mapping
Simple column mapping
Relations mapping
BelongsTo
HasMany
HasAndBelongsToMany
OneToOne
Any and HasManyToAny
Schema generation
Unit testing
Type hierarchy
Nested data (NHibernate components)
Using HQL (Hibernate Query language)
Native SQL Queries
Using Scopes
Enabling lazy load
Validation support
Best practices
Web applications
Troubleshooting
Advanced usage
¶
Using the ActiveRecordMediator (avoiding a base class)
Using Version and Timestamp
Using Imports
Hooks and lifecycle
Framework events
Accessing more than one database
Tuning (performance improvements)
The AR ByteCode Generator and Scopeless Lazy Loading
Integrations
¶
MonoRail ActiveRecord integration
MonoRail ActiveRecord Scaffolding
ActiveWriter
Historical Content
¶
Pages from
Confluence
¶
Articles on ActiveRecord
Documentation
Active Record Internals
ActiveRecord Kickstart
An introduction
Configuration Reference
FAQ
Getting Started
Hooks
Mappings
Schema Pitfalls
Scopes
Using the Conversation Pattern
Specifications
NHEventListenerSpecs