<?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: Configuring NHibernate Burrow using Fluent NHibernate</title>
	<atom:link href="http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/</link>
	<description>Complexity through Simplicity</description>
	<lastBuildDate>Tue, 13 Jul 2010 07:25:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Erik Burger</title>
		<link>http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/comment-page-1/#comment-164</link>
		<dc:creator>Erik Burger</dc:creator>
		<pubDate>Sun, 09 May 2010 11:24:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=226#comment-164</guid>
		<description>Hi Jay,

Excellent! Thanks for posting your solution, I am sure it’ll come in handy  

Erik</description>
		<content:encoded><![CDATA[<p>Hi Jay,</p>
<p>Excellent! Thanks for posting your solution, I am sure it’ll come in handy  </p>
<p>Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Bohac</title>
		<link>http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/comment-page-1/#comment-155</link>
		<dc:creator>Jay Bohac</dc:creator>
		<pubDate>Thu, 06 May 2010 17:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=226#comment-155</guid>
		<description>Hey Erik,

I resolved my issue and it goes like this:

  public void Config(IBurrowConfig val)
        {
            val.PersistenceUnitCfgs.Add(new PersistenceUnitElement
                    {
                        Name = &quot;P1&quot;,
                        NHConfigFile = null
                    });
            val.PersistenceUnitCfgs.Add(new PersistenceUnitElement
                    {
                        Name = &quot;p2&quot;, 
                        NHConfigFile = null
                    });      
        }

And:

        public void Config(IPersistenceUnitCfg puCfg, Configuration nhCfg)
        {
           switch (puCfg.Name)
           {
               case &quot;P1&quot;:
                   var FirstOracleConfig = OracleClientConfiguration.Oracle10
                            .ConnectionString(c =&gt; c.FromConnectionStringWithKey(&quot;FirstDb&quot;));
                   Fluently.Configure(nhCfg)
                       .Database(FirstOracleConfig)
                       .Mappings(m =&gt; m.FluentMappings
                           .Add()
                           .Add())
                       .BuildConfiguration();
                   break;

               case &quot;P2&quot;:
                    var SecondOracleConfig = OracleClientConfiguration.Oracle10
                     .ConnectionString(c =&gt; c.FromConnectionStringWithKey(&quot;SecondDB&quot;));
                   Fluently.Configure(nhCfg)
                       .Database(SecondOracleConfig )
                       .Mappings(m =&gt; m.FluentMappings
                           .Add()
                           .Add())
                       .BuildConfiguration();
                   break;
           }   
        }


Hope this helps...

-Jay</description>
		<content:encoded><![CDATA[<p>Hey Erik,</p>
<p>I resolved my issue and it goes like this:</p>
<p>  public void Config(IBurrowConfig val)<br />
        {<br />
            val.PersistenceUnitCfgs.Add(new PersistenceUnitElement<br />
                    {<br />
                        Name = &#8220;P1&#8243;,<br />
                        NHConfigFile = null<br />
                    });<br />
            val.PersistenceUnitCfgs.Add(new PersistenceUnitElement<br />
                    {<br />
                        Name = &#8220;p2&#8243;,<br />
                        NHConfigFile = null<br />
                    });<br />
        }</p>
<p>And:</p>
<p>        public void Config(IPersistenceUnitCfg puCfg, Configuration nhCfg)<br />
        {<br />
           switch (puCfg.Name)<br />
           {<br />
               case &#8220;P1&#8243;:<br />
                   var FirstOracleConfig = OracleClientConfiguration.Oracle10<br />
                            .ConnectionString(c =&gt; c.FromConnectionStringWithKey(&#8220;FirstDb&#8221;));<br />
                   Fluently.Configure(nhCfg)<br />
                       .Database(FirstOracleConfig)<br />
                       .Mappings(m =&gt; m.FluentMappings<br />
                           .Add()<br />
                           .Add())<br />
                       .BuildConfiguration();<br />
                   break;</p>
<p>               case &#8220;P2&#8243;:<br />
                    var SecondOracleConfig = OracleClientConfiguration.Oracle10<br />
                     .ConnectionString(c =&gt; c.FromConnectionStringWithKey(&#8220;SecondDB&#8221;));<br />
                   Fluently.Configure(nhCfg)<br />
                       .Database(SecondOracleConfig )<br />
                       .Mappings(m =&gt; m.FluentMappings<br />
                           .Add()<br />
                           .Add())<br />
                       .BuildConfiguration();<br />
                   break;<br />
           }<br />
        }</p>
<p>Hope this helps&#8230;</p>
<p>-Jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Burger</title>
		<link>http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/comment-page-1/#comment-140</link>
		<dc:creator>Erik Burger</dc:creator>
		<pubDate>Sun, 25 Apr 2010 13:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=226#comment-140</guid>
		<description>Hi Jay,

I haven&#039;t had any hands-on with that but I did dig up a few articles/posts that might point you in the right direction:

http://stackoverflow.com/questions/2698503/how-to-identify-a-particular-entitys-session-factory-with-fluent-nhibernate-and
http://codebetter.com/blogs/karlseguin/archive/2009/03/30/using-nhibernate-with-multiple-databases.aspx
http://www.codeproject.com/KB/aspnet/NHibernateMultipleDBs.aspx

Of course that still leaves you with the challenge of getting Fluent and Burrow work nicely with multiple databases. If I&#039;d have to hazard a guess I&#039;d say that setting up multiple persistence units in Burrow should do the trick and then setting up the configuration with Fluent based on which PU you are looking at.

I&#039;m pretty sure I will be running into the same requirement in my current project pretty soon so if I have more information to share I will definitely do so.

Good luck and if there&#039;s anything else I can help with or if you need to bounce ideas, let me know.

Erik</description>
		<content:encoded><![CDATA[<p>Hi Jay,</p>
<p>I haven&#8217;t had any hands-on with that but I did dig up a few articles/posts that might point you in the right direction:</p>
<p><a href="http://stackoverflow.com/questions/2698503/how-to-identify-a-particular-entitys-session-factory-with-fluent-nhibernate-and" rel="nofollow">http://stackoverflow.com/questions/2698503/how-to-identify-a-particular-entitys-session-factory-with-fluent-nhibernate-and</a><br />
<a href="http://codebetter.com/blogs/karlseguin/archive/2009/03/30/using-nhibernate-with-multiple-databases.aspx" rel="nofollow">http://codebetter.com/blogs/karlseguin/archive/2009/03/30/using-nhibernate-with-multiple-databases.aspx</a><br />
<a href="http://www.codeproject.com/KB/aspnet/NHibernateMultipleDBs.aspx" rel="nofollow">http://www.codeproject.com/KB/aspnet/NHibernateMultipleDBs.aspx</a></p>
<p>Of course that still leaves you with the challenge of getting Fluent and Burrow work nicely with multiple databases. If I&#8217;d have to hazard a guess I&#8217;d say that setting up multiple persistence units in Burrow should do the trick and then setting up the configuration with Fluent based on which PU you are looking at.</p>
<p>I&#8217;m pretty sure I will be running into the same requirement in my current project pretty soon so if I have more information to share I will definitely do so.</p>
<p>Good luck and if there&#8217;s anything else I can help with or if you need to bounce ideas, let me know.</p>
<p>Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Bohac</title>
		<link>http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/comment-page-1/#comment-139</link>
		<dc:creator>Jay Bohac</dc:creator>
		<pubDate>Thu, 22 Apr 2010 16:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=226#comment-139</guid>
		<description>Hey Erik,

I&#039;m trying to figure out how to map to multiple databases (two), but stuck trying to figure out how to set up the fluent configuration.  Any ideas?

-J</description>
		<content:encoded><![CDATA[<p>Hey Erik,</p>
<p>I&#8217;m trying to figure out how to map to multiple databases (two), but stuck trying to figure out how to set up the fluent configuration.  Any ideas?</p>
<p>-J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Burger</title>
		<link>http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/comment-page-1/#comment-85</link>
		<dc:creator>Erik Burger</dc:creator>
		<pubDate>Wed, 30 Sep 2009 09:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=226#comment-85</guid>
		<description>Hi Jason,

What this looks like to me is that you might have more than one persistence unit declared but without your code I can do little more than guess. If you&#039;d like to send me your code I&#039;d be more than willing to help you out a bit more. My address is eburger at reversealchemy dot net.

Cheers,

Erik</description>
		<content:encoded><![CDATA[<p>Hi Jason,</p>
<p>What this looks like to me is that you might have more than one persistence unit declared but without your code I can do little more than guess. If you&#8217;d like to send me your code I&#8217;d be more than willing to help you out a bit more. My address is eburger at reversealchemy dot net.</p>
<p>Cheers,</p>
<p>Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.reversealchemy.net/blog/2009/08/27/configuring-nhibernate-burrow-using-fluent-nhibernate/comment-page-1/#comment-84</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 28 Sep 2009 20:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.reversealchemy.net/?p=226#comment-84</guid>
		<description>Erik--

I followed your post on implementing fluent with burrow and am experiencing an issue I&#039;m hoping perhaps you could shed some light on.

I receive this error:

Unable to get persistence unit without an entity type when there are more than one session factories. 

This occurs on the line

new BurrowFramework().GetSession()

Thoughts..?</description>
		<content:encoded><![CDATA[<p>Erik&#8211;</p>
<p>I followed your post on implementing fluent with burrow and am experiencing an issue I&#8217;m hoping perhaps you could shed some light on.</p>
<p>I receive this error:</p>
<p>Unable to get persistence unit without an entity type when there are more than one session factories. </p>
<p>This occurs on the line</p>
<p>new BurrowFramework().GetSession()</p>
<p>Thoughts..?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
