<?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: Fluent NHibernate: Auto Mapping Introduction</title>
	<atom:link href="http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/feed/" rel="self" type="application/rss+xml" />
	<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/</link>
	<description>Monkeying with the code</description>
	<lastBuildDate>Fri, 26 Feb 2010 20:38:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rolling my own blog engine, part 3 — CarlFurrow.com</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-21222</link>
		<dc:creator>Rolling my own blog engine, part 3 — CarlFurrow.com</dc:creator>
		<pubDate>Tue, 02 Jun 2009 02:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-21222</guid>
		<description>[...] my blogging engine.&#160; If you’re unfamiliar with the concept of automapping, you should browse James Gregory’s introductory post. Basically, we gained the benefit of XML-less configuration when mapping our data transfer objects [...]</description>
		<content:encoded><![CDATA[<p>[...] my blogging engine.&#160; If you’re unfamiliar with the concept of automapping, you should browse James Gregory’s introductory post. Basically, we gained the benefit of XML-less configuration when mapping our data transfer objects [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Auto-mapping with Fluent NHibernate &#171; using &#8230;</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-20304</link>
		<dc:creator>Auto-mapping with Fluent NHibernate &#171; using &#8230;</dc:creator>
		<pubDate>Sun, 17 May 2009 15:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-20304</guid>
		<description>[...] Auto Mapping Introduction [...]</description>
		<content:encoded><![CDATA[<p>[...] Auto Mapping Introduction [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-19084</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Mon, 27 Apr 2009 11:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-19084</guid>
		<description>If they&#039;re all in the same assembly, then you should only need one of the calls. You&#039;re better asking questions like this on the Fluent NHibernate &lt;a href=&quot;http://groups.google.com/group/fluent-nhibernate&quot; rel=&quot;nofollow&quot;&gt;mailing list&lt;/a&gt; which has much more than just myself available to answer questions.</description>
		<content:encoded><![CDATA[<p>If they&#8217;re all in the same assembly, then you should only need one of the calls. You&#8217;re better asking questions like this on the Fluent NHibernate <a href="http://groups.google.com/group/fluent-nhibernate" rel="nofollow">mailing list</a> which has much more than just myself available to answer questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-19081</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Mon, 27 Apr 2009 11:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-19081</guid>
		<description>Please ask on the Fluent NHibernate &lt;a href=&quot;http://groups.google.com/group/fluent-nhibernate&quot; rel=&quot;nofollow&quot;&gt;mailing list&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Please ask on the Fluent NHibernate <a href="http://groups.google.com/group/fluent-nhibernate" rel="nofollow">mailing list</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yazid</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-19047</link>
		<dc:creator>Yazid</dc:creator>
		<pubDate>Sun, 26 Apr 2009 21:04:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-19047</guid>
		<description>Hello,

If had the following:

public class A
{

private IList cl;
public ILIST CL
{
get{return cl;}
set (cl=value;}
}

// Other members
}

public class B
{

private IList cl;
public ILIST CL
{
get{return cl;}
set (cl=value;}
}

// other members
}

public class C
{

private string name;
public string Name
{
get{return name;}
set (name=value;}
}

// Other members
}

in the ILIST it expects a class of type C.

What would be the mapping in NHibernate using either hbm or automapping?

TIA
Yaz</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>If had the following:</p>
<p>public class A<br />
{</p>
<p>private IList cl;<br />
public ILIST CL<br />
{<br />
get{return cl;}<br />
set (cl=value;}<br />
}</p>
<p>// Other members<br />
}</p>
<p>public class B<br />
{</p>
<p>private IList cl;<br />
public ILIST CL<br />
{<br />
get{return cl;}<br />
set (cl=value;}<br />
}</p>
<p>// other members<br />
}</p>
<p>public class C<br />
{</p>
<p>private string name;<br />
public string Name<br />
{<br />
get{return name;}<br />
set (name=value;}<br />
}</p>
<p>// Other members<br />
}</p>
<p>in the ILIST it expects a class of type C.</p>
<p>What would be the mapping in NHibernate using either hbm or automapping?</p>
<p>TIA<br />
Yaz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yazid</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-18460</link>
		<dc:creator>Yazid</dc:creator>
		<pubDate>Fri, 17 Apr 2009 15:40:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-18460</guid>
		<description>Hello Again,

I wrote this and it worked, there must a more elegant way?

var catMappings = AutoPersistenceModel.MapEntitiesFromAssemblyOf()
                                    .Where(t =&gt; t.Namespace == &quot;FlentNHibernate.Model&quot;);

            var productMappings = AutoPersistenceModel.MapEntitiesFromAssemblyOf()
                                    .Where(t =&gt; t.Namespace == &quot;FlentNHibernate.Model&quot;);

            var orderDetailsMappings = AutoPersistenceModel.MapEntitiesFromAssemblyOf()
                                    .Where(t =&gt; t.Namespace == &quot;FlentNHibernate.Model&quot;);


            var cfg = new Configuration().Configure()
                            .AddAutoMappings(catMappings)
                            .AddAutoMappings(productMappings)
                            .AddAutoMappings(orderDetailsMappings);

            new SchemaExport(cfg).Create(true, true);
                            

TIA
Yaz</description>
		<content:encoded><![CDATA[<p>Hello Again,</p>
<p>I wrote this and it worked, there must a more elegant way?</p>
<p>var catMappings = AutoPersistenceModel.MapEntitiesFromAssemblyOf()<br />
                                    .Where(t =&gt; t.Namespace == &#8220;FlentNHibernate.Model&#8221;);</p>
<p>            var productMappings = AutoPersistenceModel.MapEntitiesFromAssemblyOf()<br />
                                    .Where(t =&gt; t.Namespace == &#8220;FlentNHibernate.Model&#8221;);</p>
<p>            var orderDetailsMappings = AutoPersistenceModel.MapEntitiesFromAssemblyOf()<br />
                                    .Where(t =&gt; t.Namespace == &#8220;FlentNHibernate.Model&#8221;);</p>
<p>            var cfg = new Configuration().Configure()<br />
                            .AddAutoMappings(catMappings)<br />
                            .AddAutoMappings(productMappings)<br />
                            .AddAutoMappings(orderDetailsMappings);</p>
<p>            new SchemaExport(cfg).Create(true, true);</p>
<p>TIA<br />
Yaz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Easing NHibernate Development</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-15417</link>
		<dc:creator>Easing NHibernate Development</dc:creator>
		<pubDate>Tue, 27 Jan 2009 00:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-15417</guid>
		<description>[...] typed means of setting up your entity mappings without even touching XML. You can either use the auto mapping facility or fully customise the mappings, but it&#8217;s all done with full intellisense support and a [...]</description>
		<content:encoded><![CDATA[<p>[...] typed means of setting up your entity mappings without even touching XML. You can either use the auto mapping facility or fully customise the mappings, but it&#8217;s all done with full intellisense support and a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo Melato</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-15306</link>
		<dc:creator>Lorenzo Melato</dc:creator>
		<pubDate>Wed, 21 Jan 2009 16:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-15306</guid>
		<description>...also... the use of xml for this particular entity, highlights the use of unorthodox techniques (like mapping of private fields)...</description>
		<content:encoded><![CDATA[<p>&#8230;also&#8230; the use of xml for this particular entity, highlights the use of unorthodox techniques (like mapping of private fields)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo Melato</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-15305</link>
		<dc:creator>Lorenzo Melato</dc:creator>
		<pubDate>Wed, 21 Jan 2009 16:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-15305</guid>
		<description>Ciao James,
There is a fourth possibility. If for a particular entity there is the need of having to map a private field, for that entity we can use an hbm.xml file instead of Fluent NHibernate! ;-)</description>
		<content:encoded><![CDATA[<p>Ciao James,<br />
There is a fourth possibility. If for a particular entity there is the need of having to map a private field, for that entity we can use an hbm.xml file instead of Fluent NHibernate! <img src='http://jagregory.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy Tuttle</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-introduction/comment-page-1/#comment-15037</link>
		<dc:creator>Troy Tuttle</dc:creator>
		<pubDate>Mon, 12 Jan 2009 02:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=189#comment-15037</guid>
		<description>Very nice.  Thanks for your work on this.</description>
		<content:encoded><![CDATA[<p>Very nice.  Thanks for your work on this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
