<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dario Quintana &#187; ActiveRecord</title>
	<atom:link href="http://darioquintana.com.ar/blogging/category/activerecord/feed/" rel="self" type="application/rss+xml" />
	<link>http://darioquintana.com.ar/blogging</link>
	<description>at blogging</description>
	<lastBuildDate>Mon, 30 Apr 2012 07:05:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>ActiveRecord moving to NHibernate 2</title>
		<link>http://darioquintana.com.ar/blogging/2007/11/14/activerecord-moving-to-nhibernate-2/</link>
		<comments>http://darioquintana.com.ar/blogging/2007/11/14/activerecord-moving-to-nhibernate-2/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 05:57:45 +0000</pubDate>
		<dc:creator>Dario</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[NHibernate]]></category>

		<guid isPermaLink="false">http://darioquintana.com.ar/blogging/?p=17</guid>
		<description><![CDATA[<p>Aparently the <a href="http://groups.google.com.ar/group/castle-project-devel">ActiveRecord guys</a> want to move ActiveRecord to <a href="http://darioquintana.com.ar/blogging/?p=13">NHibernate 2.0</a>, for now, this means, move to NHibernate trunk (just for now).</p> <p>This will bring more capabilities to ActiveRecord, for example, <a href="http://darioquintana.com.ar/blogging/?p=15">here</a> I show you how to use DetachedQuery with ActiveRecord. Moving to NHibernate 2.0, I will able to commit a patch [...]]]></description>
			<content:encoded><![CDATA[<p>Aparently the <a href="http://groups.google.com.ar/group/castle-project-devel">ActiveRecord guys</a> want to move ActiveRecord to <a href="http://darioquintana.com.ar/blogging/?p=13">NHibernate 2.0</a>, for now, this means, move to NHibernate trunk (just for now).</p>
<p>This will bring more capabilities to ActiveRecord, for example, <a href="http://darioquintana.com.ar/blogging/?p=15">here</a> I show you how to use DetachedQuery with ActiveRecord. Moving to NHibernate 2.0, I will able to commit a patch with this support without need <em>uNHAddIns.ActiveRecord.dll</em>.</p>
<p><a href="http://groups.google.com.ar/group/castle-project-devel/browse_thread/thread/7c6d5a39ad91d446">At this thread</a> you can see the guys of developer list of Castle voting for do this play.</p>
<p>Another key feature to take advantages is <a href="http://darioquintana.com.ar/blogging/?p=9">Event Listeners</a>. At chat with Fabio Maulo:</p>
<ul>
<li>Me:  &#8220;<em>I can&#8217;t see the advantages using Event Listeners with ActiveRecord at Validation, AR validate before Save and do this work</em>&#8220;</li>
<li>Fabio: &#8220;<em>How you can intercept the validation process untill make the Save?</em>&#8220;</li>
<li>Me: &#8220;<em>You can&#8217;t</em>&#8220;</li>
<li>Fabio: &#8220;<em>You just answered yourself</em>&#8220;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://darioquintana.com.ar/blogging/2007/11/14/activerecord-moving-to-nhibernate-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ActiveRecord and support for DetachedQuery</title>
		<link>http://darioquintana.com.ar/blogging/2007/11/11/activerecord-and-support-for-detachedquery/</link>
		<comments>http://darioquintana.com.ar/blogging/2007/11/11/activerecord-and-support-for-detachedquery/#comments</comments>
		<pubDate>Sun, 11 Nov 2007 19:34:32 +0000</pubDate>
		<dc:creator>Dario</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[uNHAddIns]]></category>

		<guid isPermaLink="false">http://darioquintana.com.ar/blogging/?p=15</guid>
		<description><![CDATA[<p>This weekend I wrote the classes necessaries to support IDetachedQuery with <a href="http://www.castleproject.org/activerecord/index.html">ActiveRecord</a>. <a href="http://code.google.com/p/unhaddins/wiki/LesTroisMousquetaires">DetachedQuery</a> it&#8217;s not available yet at any version of <a href="http://www.nhibernate.org">NHibernate</a>, you can find it only in <a href="http://code.google.com/p/unhaddins/">uNHAddIns</a> and at the SVN of NHibernate.</p> <p>I add a project to uNHAddIns: <a href="http://code.google.com/p/unhaddins/wiki/ActiveRecordAndDetachedQuery">uNHAddIns.ActiveRecord</a>. This consist in the classical classes for ActiveRecord [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I wrote the classes necessaries to support IDetachedQuery with <a href="http://www.castleproject.org/activerecord/index.html">ActiveRecord</a>. <a href="http://code.google.com/p/unhaddins/wiki/LesTroisMousquetaires">DetachedQuery</a> it&#8217;s not available yet at any version of <a href="http://www.nhibernate.org">NHibernate</a>, you can find it only in <a href="http://code.google.com/p/unhaddins/">uNHAddIns</a> and at the SVN of NHibernate.</p>
<p>I add a project to uNHAddIns: <a href="http://code.google.com/p/unhaddins/wiki/ActiveRecordAndDetachedQuery">uNHAddIns.ActiveRecord</a>. This consist in the classical classes for ActiveRecord with support for IDetachedQuery.</p>
<p>If we want support for IDetachedQuery using <a href="http://www.castleproject.org/activerecord/index.html">ActiveRecord</a> you must this clases:</p>
<ul>
<li><tt>ActiveRecordBase</tt></li>
<li><tt>ActiveRecordBase&lt;T&gt;</tt></li>
<li><tt>ActiveRecordValidationBase</tt></li>
<li>and <tt>ActiveRecordValidationBase&lt;T&gt;</tt></li>
</ul>
<p>Now you will able to do somethings like this:</p>
<pre>Customer[] customers = Customer.FindAll(new DetachedQuery("from Customer Order By Name"));</pre>
<p>The new methods for ActiveRecordBase and ActiveRecordValidationBase are:</p>
<ul>
<li>
<pre>public static bool Exists(Type targetType, IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static Array FindAll(Type targetType, IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static object FindFirst(Type targetType, IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static object FindOne(Type targetType, IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static Array SlicedFindAll(Type targetType, int firstResult, int maxResults, IDetachedQuery detachedQuery);</pre>
</li>
</ul>
<p>And the new methods for ActiveRecordBase&lt;T&gt; and ActiveRecordValidationBase&lt;T&gt; are:</p>
<ul>
<li>
<pre>public static bool Exists(IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static T[] FindAll(IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static T FindFirst(IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static T FindOne(IDetachedQuery detachedQuery);</pre>
</li>
<li>
<pre>public static T[] SlicedFindAll(int firstResult, int maxResults, IDetachedQuery detachedQuery);</pre>
</li>
</ul>
<p>This implementation no hide any feature of ActiveRecord base classes, it&#8217;s a extension for IDetachedQuery support.</p>
<h4>Requeriments</h4>
<p>This classes are provided in the assembly <tt>uNHAddIns.ActiveRecord.dll</tt>. And this assembly require the main assembly of the project: <tt>uNHAddIns.dll</tt>.</p>
<h4><a href="http://unhaddins.googlecode.com/files/uNHAddIns%20-%20binaries%20-%20Revision%2071.7z">Downloads here</a></h4>
<h4><a href="http://code.google.com/p/unhaddins/wiki/ActiveRecordAndDetachedQuery">Wiki entry</a></h4>
]]></content:encoded>
			<wfw:commentRss>http://darioquintana.com.ar/blogging/2007/11/11/activerecord-and-support-for-detachedquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

