1 <html><!-- InstanceBegin template="/Templates/template1.dwt.asp" codeOutsideHTMLIsLocked="false" -->
3 <!-- InstanceBeginEditable name="doctitle" --><title>ActiveRecord
</title><!-- InstanceEndEditable -->
4 <link rel=
"stylesheet" type=
"text/css" href=
"styles/presentation.css" />
11 <tr id=
"headerTableRow1">
13 <span id=
"runningHeaderText">Castle Project
</span>
16 <tr id=
"headerTableRow2">
17 <td align=
"left"><!-- InstanceBeginEditable name="Title" -->ActiveRecord
<!-- InstanceEndEditable --></td>
21 <div id=
"mainSection">
23 <h1 class=
"heading"><!-- InstanceBeginEditable name="MainHeading" -->Castle ActiveRecord
<!-- InstanceEndEditable --></h1>
25 <!-- InstanceBeginEditable name="Content" -->
29 The Castle ActiveRecord project is an implementation of the ActiveRecord pattern for .NET. The ActiveRecord pattern
30 consists on instance properties representing a record in the database, instance methods acting on that specific record
31 and static methods acting on all records.
35 Castle ActiveRecord is built on top of NHibernate, but its attribute-based mapping free the developer of writing XML
36 for database-to-object mapping, which is needed when using NHibernate directly.
39 <pre lang=
"cs" numberLines=
"false" title=
"Example of ActiveRecord class">
41 public class Blog : ActiveRecordBase
<Blog>
45 private string author;
64 get { return author; }
65 set { author = value; }
71 ActiveRecord resources:
75 <li> <a href=
"http://www.castleproject.org/activerecord/gettingstarted/index.html" target=
"_blank">Getting Started
</a> </li>
76 <li> <a href=
"http://www.castleproject.org/activerecord/documentation/index.html" target=
"_blank">Documentation
</a> </li>
77 <li> <a href=
"http://www.castleproject.org/activerecord/recipes/index.html" target=
"_blank">Recipes
</a> </li>
78 <li> <a href=
"http://www.castleproject.org/activerecord/roadmap.html" target=
"_blank">Roadmap
</a> </li>
79 <li> <a href=
"http://www.castleproject.org/activerecord/faq.html" target=
"_blank">FAQ
</a> </li>
82 <!-- InstanceEndEditable --></div>
86 <div class=
"footerLine">
87 <img width=
"100%" height=
"3px" src=
"icons/footer.gif" alt=
"Footer image"/>
90 <include item=
"comments"/>
91 <include item=
"copyright"/>
95 <!-- InstanceEnd --></html>