<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ActiveRecord and NHibernate</title>
	<atom:link href="http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/</link>
	<description>.NET Software Development</description>
	<lastBuildDate>Mon, 14 Nov 2011 14:58:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kyralessa</title>
		<link>http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/comment-page-1/#comment-60755</link>
		<dc:creator>Kyralessa</dc:creator>
		<pubDate>Wed, 04 May 2011 17:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=51#comment-60755</guid>
		<description>Yex,

You can &quot;escape&quot; table names in Castle ActiveRecord by using brackets or backquotes.  So if you have a table named Customer.Address, and you mapped it to an Address class, you&#039;d put the ActiveRecord attribute on the class in one of these two ways:

[ActiveRecord(&quot;[Customer.Address]&quot;)]

or

[ActiveRecord(&quot;`Customer.Address`&quot;)]</description>
		<content:encoded><![CDATA[<p>Yex,</p>
<p>You can &#8220;escape&#8221; table names in Castle ActiveRecord by using brackets or backquotes.  So if you have a table named Customer.Address, and you mapped it to an Address class, you&#8217;d put the ActiveRecord attribute on the class in one of these two ways:</p>
<p>[ActiveRecord("[Customer.Address]&#8220;)]</p>
<p>or</p>
<p>[ActiveRecord("`Customer.Address`")]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://%/bvwssee</title>
		<link>http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/comment-page-1/#comment-59165</link>
		<dc:creator>http://%/bvwssee</dc:creator>
		<pubDate>Mon, 15 Nov 2010 06:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=51#comment-59165</guid>
		<description>&lt;strong&gt;... track backe bei http://majormihalkovic.singleparentbuzz.com/ ......&lt;/strong&gt;

bon , votre weblog thème est vraiment grand, je suis chasse pour obtenir un nouveau design pour mon moncler doudoune propre weblog , j&#039;aime vôtre, maintenant Je vais à aller recherche le même thème !...</description>
		<content:encoded><![CDATA[<p><strong>&#8230; track backe bei <a href="http://majormihalkovic.singleparentbuzz.com/" rel="nofollow">http://majormihalkovic.singleparentbuzz.com/</a> &#8230;&#8230;</strong></p>
<p>bon , votre weblog thème est vraiment grand, je suis chasse pour obtenir un nouveau design pour mon moncler doudoune propre weblog , j&#8217;aime vôtre, maintenant Je vais à aller recherche le même thème !&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack Altiere</title>
		<link>http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/comment-page-1/#comment-48379</link>
		<dc:creator>Jack Altiere</dc:creator>
		<pubDate>Thu, 19 Mar 2009 14:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=51#comment-48379</guid>
		<description>I don&#039;t think I did anything special to get the dot notation working for this.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think I did anything special to get the dot notation working for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yex</title>
		<link>http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/comment-page-1/#comment-48322</link>
		<dc:creator>Yex</dc:creator>
		<pubDate>Mon, 16 Mar 2009 19:18:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=51#comment-48322</guid>
		<description>Are you aware of anything special you did to get this to work against tables with dots in the names? I&#039;ve created a database that I&#039;m trying to use AR against, and I&#039;m getting an &quot;Invalid object name&quot; error on my tables, specified with attributes the same way you&#039;ve done here. I was able to correct the problem by renaming the table to use an underscore instead of a dot in the name, so it seems like AR (or maybe NHib) isn&#039;t liking the dot in the name, though it appears that it doesn&#039;t seem to have a problem for you here. Did you do something special to account for that?</description>
		<content:encoded><![CDATA[<p>Are you aware of anything special you did to get this to work against tables with dots in the names? I&#8217;ve created a database that I&#8217;m trying to use AR against, and I&#8217;m getting an &#8220;Invalid object name&#8221; error on my tables, specified with attributes the same way you&#8217;ve done here. I was able to correct the problem by renaming the table to use an underscore instead of a dot in the name, so it seems like AR (or maybe NHib) isn&#8217;t liking the dot in the name, though it appears that it doesn&#8217;t seem to have a problem for you here. Did you do something special to account for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheckyd</title>
		<link>http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/comment-page-1/#comment-48210</link>
		<dc:creator>Sheckyd</dc:creator>
		<pubDate>Wed, 11 Mar 2009 19:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=51#comment-48210</guid>
		<description>Hi, thank you for publishing this article. I am still learning Castle ActiveRecord and this helps alot.

I have a few questions. You mentioned you don&#039;t want to couple your UI and data layer together, so you create static method on your Contact class (ex: LoadContactById) that hides the HQL.  But, where do you Initialize ActiveREcord? in your console app or somehow in the class library?   I have the same scenario, a console app with a class library behind it. I am not sure how to initialize the ActiveRecord somewhere other than my console app.

Also, I want to be able to remove the reference to ActiveRecord.dll from my console app. But the minute I do so, the console app throws an error because my Contact object inherits from ActiveRecordBase. And if my console app doesn&#039;t know about ActiveRecord, it give an error:   &quot;The type &#039;Castle.ActiveRecord.ActiveRecordBase`1&#039; is defined in an assembly that is not referenced. You must add a reference to assembly &#039;Castle.ActiveRecord, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc&#039;.

Anyway, I&#039;m also reading your second article on making Persisten Ignorant Objects with AR (http://www.jaltiere.com/?p=52). In that article, where do you initialize ActiveRecord?

Thanks again, nice work!
-Sean</description>
		<content:encoded><![CDATA[<p>Hi, thank you for publishing this article. I am still learning Castle ActiveRecord and this helps alot.</p>
<p>I have a few questions. You mentioned you don&#8217;t want to couple your UI and data layer together, so you create static method on your Contact class (ex: LoadContactById) that hides the HQL.  But, where do you Initialize ActiveREcord? in your console app or somehow in the class library?   I have the same scenario, a console app with a class library behind it. I am not sure how to initialize the ActiveRecord somewhere other than my console app.</p>
<p>Also, I want to be able to remove the reference to ActiveRecord.dll from my console app. But the minute I do so, the console app throws an error because my Contact object inherits from ActiveRecordBase. And if my console app doesn&#8217;t know about ActiveRecord, it give an error:   &#8220;The type &#8216;Castle.ActiveRecord.ActiveRecordBase`1&#8242; is defined in an assembly that is not referenced. You must add a reference to assembly &#8216;Castle.ActiveRecord, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc&#8217;.</p>
<p>Anyway, I&#8217;m also reading your second article on making Persisten Ignorant Objects with AR (<a href="http://www.jaltiere.com/?p=52" rel="nofollow">http://www.jaltiere.com/?p=52</a>). In that article, where do you initialize ActiveRecord?</p>
<p>Thanks again, nice work!<br />
-Sean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben van</title>
		<link>http://www.jaltiere.com/index.php/2008/07/01/activerecord-and-nhibernate/comment-page-1/#comment-47140</link>
		<dc:creator>Ben van</dc:creator>
		<pubDate>Tue, 03 Feb 2009 15:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.jaltiere.com/?p=51#comment-47140</guid>
		<description>You, Sir, are a star. Thank you.</description>
		<content:encoded><![CDATA[<p>You, Sir, are a star. Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

