<?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: Article series on NHibernate and Fluent NHibernate – Part 3</title>
	<atom:link href="http://lostechies.com/gabrielschenker/2009/09/02/article-series-on-nhibernate-and-fluent-nhibernate-part-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/gabrielschenker/2009/09/02/article-series-on-nhibernate-and-fluent-nhibernate-part-3/</link>
	<description>Blog about architectural patterns, best practices, coding principles and techniques</description>
	<lastBuildDate>Tue, 02 Apr 2013 00:12:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Corey Coogan</title>
		<link>http://lostechies.com/gabrielschenker/2009/09/02/article-series-on-nhibernate-and-fluent-nhibernate-part-3/#comment-185</link>
		<dc:creator>Corey Coogan</dc:creator>
		<pubDate>Wed, 02 Sep 2009 14:54:15 +0000</pubDate>
		<guid isPermaLink="false">/blogs/gabrielschenker/archive/2009/09/02/article-series-on-nhibernate-and-fluent-nhibernate-part-3.aspx#comment-185</guid>
		<description>Thanks for the article series Gabriel.  I&#039;ve recently jumped into both NH and FNH via a personal project I&#039;m doing with the S#arpArchitecture for RoomParentsOnline.com.

One thing I am interested in, but haven&#039;t found a good solution to, is how to have my entity base class define a byte[] Timestamp column to use for concurrency with a SQL Server database&#039;s Timestamp datatype.

Ideally, I want a convention to map that property in each Entity to a Version element that would like this:

&lt;version name=&quot;Version&quot;
                                 generated=&quot;always&quot;
                                 unsaved-value=&quot;null&quot;
                                 type=&quot;BinaryBlob&quot;&gt;
        &lt;column name=&quot;Version&quot;
                                        not-null=&quot;false&quot;
                                        sql-type=&quot;timestamp&quot;/&gt;
    &lt;/version&gt; 

The not-null=&quot;false&quot; is required for testing against SQLITE.  I&#039;ve tried to use the IVersionConvention but can&#039;t get the mapping to look like I want.

Automatic concurrency is an important topic to many and I think if you can get this working and show how to do it, your readers would be very interested.

Thanks,
Corey</description>
		<content:encoded><![CDATA[<p>Thanks for the article series Gabriel.  I&#8217;ve recently jumped into both NH and FNH via a personal project I&#8217;m doing with the S#arpArchitecture for RoomParentsOnline.com.</p>
<p>One thing I am interested in, but haven&#8217;t found a good solution to, is how to have my entity base class define a byte[] Timestamp column to use for concurrency with a SQL Server database&#8217;s Timestamp datatype.</p>
<p>Ideally, I want a convention to map that property in each Entity to a Version element that would like this:</p>
<p><version name="Version"<br />
                                 generated="always"<br />
                                 unsaved-value="null"<br />
                                 type="BinaryBlob"></p>
<column name="Version"<br />
                                        not-null="false"<br />
                                        sql-type="timestamp"/><br />
    </version> </p>
<p>The not-null=&#8221;false&#8221; is required for testing against SQLITE.  I&#8217;ve tried to use the IVersionConvention but can&#8217;t get the mapping to look like I want.</p>
<p>Automatic concurrency is an important topic to many and I think if you can get this working and show how to do it, your readers would be very interested.</p>
<p>Thanks,<br />
Corey</p>
]]></content:encoded>
	</item>
</channel>
</rss>
