<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Extreme .NET programming</title>
	<atom:link href="http://blog.scooletz.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.scooletz.com</link>
	<description>Non static code design</description>
	<lastBuildDate>Sat, 18 May 2013 08:45:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Learning by scooletz</title>
		<link>http://blog.scooletz.com/2013/03/25/learning/#comment-232</link>
		<dc:creator><![CDATA[scooletz]]></dc:creator>
		<pubDate>Sat, 18 May 2013 08:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=701#comment-232</guid>
		<description><![CDATA[Indeed. That falls into the first category. Having a problem in your day to day job, that&#039;s the best way I think.]]></description>
		<content:encoded><![CDATA[<p>Indeed. That falls into the first category. Having a problem in your day to day job, that&#8217;s the best way I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Learning by macpak</title>
		<link>http://blog.scooletz.com/2013/03/25/learning/#comment-231</link>
		<dc:creator><![CDATA[macpak]]></dc:creator>
		<pubDate>Thu, 09 May 2013 07:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=701#comment-231</guid>
		<description><![CDATA[Someone told once &quot;The best way to learn is to have a problem that needs to be solved&quot;]]></description>
		<content:encoded><![CDATA[<p>Someone told once &#8220;The best way to learn is to have a problem that needs to be solved&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hello again by macpak</title>
		<link>http://blog.scooletz.com/2012/12/02/hello-again/#comment-223</link>
		<dc:creator><![CDATA[macpak]]></dc:creator>
		<pubDate>Fri, 15 Feb 2013 11:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=665#comment-223</guid>
		<description><![CDATA[Will you be back :)?]]></description>
		<content:encoded><![CDATA[<p>Will you be back <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Polymorphic count with NHibernate by scooletz</title>
		<link>http://blog.scooletz.com/2011/08/16/polymorphic-count-with-nhibernate/#comment-205</link>
		<dc:creator><![CDATA[scooletz]]></dc:creator>
		<pubDate>Tue, 18 Sep 2012 19:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=576#comment-205</guid>
		<description><![CDATA[IMHO its a nice addition, not a patch. Use it wisely, as there is no polymorphic Get on NHibernate (but you can implement one quite easily)]]></description>
		<content:encoded><![CDATA[<p>IMHO its a nice addition, not a patch. Use it wisely, as there is no polymorphic Get on NHibernate (but you can implement one quite easily)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Polymorphic count with NHibernate by Farzad</title>
		<link>http://blog.scooletz.com/2011/08/16/polymorphic-count-with-nhibernate/#comment-203</link>
		<dc:creator><![CDATA[Farzad]]></dc:creator>
		<pubDate>Mon, 17 Sep 2012 19:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=576#comment-203</guid>
		<description><![CDATA[Great post! Can&#039;t this be added somehow as a patch to nhibernate? I believe this is related to NH-2500 or NHLQ-58.]]></description>
		<content:encoded><![CDATA[<p>Great post! Can&#8217;t this be added somehow as a patch to nhibernate? I believe this is related to NH-2500 or NHLQ-58.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Polymorphic count with NHibernate by Charlie Kilian</title>
		<link>http://blog.scooletz.com/2011/08/16/polymorphic-count-with-nhibernate/#comment-201</link>
		<dc:creator><![CDATA[Charlie Kilian]]></dc:creator>
		<pubDate>Thu, 26 Jul 2012 20:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=576#comment-201</guid>
		<description><![CDATA[Thanks for pointing me in the right direction.

I had a similar problem, but with a different symptom. I was trying to use .FutureValue():

		var futureCount = work.Session
			.CreateQuery( @&quot;select count(*) 
							from Amber.BLL.IMappedFormInstance inst
							where inst.Patient.PatientCode = :patientCode&quot; )
			.SetString( &quot;patientCode&quot;, patientCode )
			.FutureValue();

It doesn&#039;t throw an exception like using .UniqueResult() does. Instead, it just returns the count from the first result set (in my case, that was 0). 

Switching to your code fixed the problem.]]></description>
		<content:encoded><![CDATA[<p>Thanks for pointing me in the right direction.</p>
<p>I had a similar problem, but with a different symptom. I was trying to use .FutureValue():</p>
<p>		var futureCount = work.Session<br />
			.CreateQuery( @&#8221;select count(*)<br />
							from Amber.BLL.IMappedFormInstance inst<br />
							where inst.Patient.PatientCode = :patientCode&#8221; )<br />
			.SetString( &#8220;patientCode&#8221;, patientCode )<br />
			.FutureValue();</p>
<p>It doesn&#8217;t throw an exception like using .UniqueResult() does. Instead, it just returns the count from the first result set (in my case, that was 0). </p>
<p>Switching to your code fixed the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Out of order commands by scooletz</title>
		<link>http://blog.scooletz.com/2011/10/31/out-of-order-commands/#comment-196</link>
		<dc:creator><![CDATA[scooletz]]></dc:creator>
		<pubDate>Sat, 31 Mar 2012 17:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=642#comment-196</guid>
		<description><![CDATA[As Jeremy D. Miller once said: the more interesting job, the less work is done at home:)
I just revisited Paxos. Hope will publish some thoughts as well as finishing the unfinished series.]]></description>
		<content:encoded><![CDATA[<p>As Jeremy D. Miller once said: the more interesting job, the less work is done at home:)<br />
I just revisited Paxos. Hope will publish some thoughts as well as finishing the unfinished series.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Out of order commands by Maciek</title>
		<link>http://blog.scooletz.com/2011/10/31/out-of-order-commands/#comment-195</link>
		<dc:creator><![CDATA[Maciek]]></dc:creator>
		<pubDate>Thu, 29 Mar 2012 12:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=642#comment-195</guid>
		<description><![CDATA[When can we expect new posts ?]]></description>
		<content:encoded><![CDATA[<p>When can we expect new posts ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Polymorphic count with NHibernate by scooletz</title>
		<link>http://blog.scooletz.com/2011/08/16/polymorphic-count-with-nhibernate/#comment-165</link>
		<dc:creator><![CDATA[scooletz]]></dc:creator>
		<pubDate>Tue, 16 Aug 2011 17:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=576#comment-165</guid>
		<description><![CDATA[Thanks :)]]></description>
		<content:encoded><![CDATA[<p>Thanks <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Polymorphic count with NHibernate by macpak</title>
		<link>http://blog.scooletz.com/2011/08/16/polymorphic-count-with-nhibernate/#comment-164</link>
		<dc:creator><![CDATA[macpak]]></dc:creator>
		<pubDate>Tue, 16 Aug 2011 14:22:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scooletz.com/?p=576#comment-164</guid>
		<description><![CDATA[Nice :)]]></description>
		<content:encoded><![CDATA[<p>Nice <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
