<?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 Entity Conventions</title>
	<atom:link href="http://jagregory.com/writings/fluent-nhibernate-auto-mapping-entity-conventions/feed/" rel="self" type="application/rss+xml" />
	<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-entity-conventions/</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: James Gregory</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-entity-conventions/comment-page-1/#comment-15563</link>
		<dc:creator>James Gregory</dc:creator>
		<pubDate>Sun, 01 Feb 2009 19:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=204#comment-15563</guid>
		<description>Well, there&#039;s two ways you can do this. You can either use the ForTypesThatDeriveFrom method and call WithTable explicitly for that type, or you can alter your convention to do some calculation on the type before it returns what it&#039;s table should be called.

I&#039;d personally go with the first, so you&#039;d do something like:

&lt;pre name=&quot;code&quot; class=&quot;c-sharp&quot;&gt;
ForTypesThatDeriveFrom&lt;SpecialClass&gt;(map =&gt;
{
  map.WithTable(&quot;SpecialTableName&quot;);
});&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Well, there&#8217;s two ways you can do this. You can either use the ForTypesThatDeriveFrom method and call WithTable explicitly for that type, or you can alter your convention to do some calculation on the type before it returns what it&#8217;s table should be called.</p>
<p>I&#8217;d personally go with the first, so you&#8217;d do something like:</p>
<pre name="code" class="c-sharp">
ForTypesThatDeriveFrom&lt;SpecialClass&gt;(map =&gt;
{
  map.WithTable("SpecialTableName");
});</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: sianabanana</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-entity-conventions/comment-page-1/#comment-15559</link>
		<dc:creator>sianabanana</dc:creator>
		<pubDate>Sun, 01 Feb 2009 17:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=204#comment-15559</guid>
		<description>Is it possible to override the conventions set previously on an entity by entity basis?

i.e. I have one table with a different name that i want to change, 

the .GetTableName convention is set above for all tables,

Can i set the table name on a per entity basis?</description>
		<content:encoded><![CDATA[<p>Is it possible to override the conventions set previously on an entity by entity basis?</p>
<p>i.e. I have one table with a different name that i want to change, </p>
<p>the .GetTableName convention is set above for all tables,</p>
<p>Can i set the table name on a per entity basis?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Community Blogs</title>
		<link>http://jagregory.com/writings/fluent-nhibernate-auto-mapping-entity-conventions/comment-page-1/#comment-15318</link>
		<dc:creator>Community Blogs</dc:creator>
		<pubDate>Wed, 21 Jan 2009 23:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jagregory.com/?p=204#comment-15318</guid>
		<description>&lt;strong&gt;Learning some new tools...&lt;/strong&gt;

I an re-writing the London .NET User Group website which is old and long in the tooth. I like these personal...</description>
		<content:encoded><![CDATA[<p><strong>Learning some new tools&#8230;</strong></p>
<p>I an re-writing the London .NET User Group website which is old and long in the tooth. I like these personal&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
