<?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: Second IUserType of the day &#8211; Store a list of string in database with NHIbernate.</title>
	<atom:link href="http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/</link>
	<description>Wrecks of code floating in the sea of Internet</description>
	<lastBuildDate>Mon, 06 Sep 2010 12:34:55 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/comment-page-1/#comment-2019</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Fri, 09 Jan 2009 14:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/#comment-2019</guid>
		<description>You are right, the String.Join makes the code more readable. Thanks for the comment :D

alk.</description>
		<content:encoded><![CDATA[<p>You are right, the String.Join makes the code more readable. Thanks for the comment <img src='http://www.codewrecks.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mich</title>
		<link>http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/comment-page-1/#comment-2017</link>
		<dc:creator>mich</dc:creator>
		<pubDate>Wed, 07 Jan 2009 15:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/#comment-2017</guid>
		<description>Instead of doing:

    IEnumerable stringList = (IEnumerable) value;
    StringBuilder sb = new StringBuilder();
    foreach(String s in stringList) {
        sb.Append(s);
        sb.Append(cStringSeparator);
    }
    if (sb.Length &gt; 0) sb.Length--;
    NHibernateUtil.String.Set(cmd, sb.ToString(), index);


you can do:

NHibernateUtil.String.Set(cmd, String.Join(cStringSeparator,((List)value).ToArray()), index);</description>
		<content:encoded><![CDATA[<p>Instead of doing:</p>
<p>    IEnumerable stringList = (IEnumerable) value;<br />
    StringBuilder sb = new StringBuilder();<br />
    foreach(String s in stringList) {<br />
        sb.Append(s);<br />
        sb.Append(cStringSeparator);<br />
    }<br />
    if (sb.Length &gt; 0) sb.Length&#8211;;<br />
    NHibernateUtil.String.Set(cmd, sb.ToString(), index);</p>
<p>you can do:</p>
<p>NHibernateUtil.String.Set(cmd, String.Join(cStringSeparator,((List)value).ToArray()), index);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some details on older post about usertype</title>
		<link>http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/comment-page-1/#comment-1817</link>
		<dc:creator>Some details on older post about usertype</dc:creator>
		<pubDate>Tue, 21 Oct 2008 11:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2008/05/30/second-iusertype-of-the-day-store-a-list-of-string-in-database-with-nhibernate/#comment-1817</guid>
		<description>[...] this old post I spoke about a user type that permits you to store a IList&lt;String&gt; property with [...]</description>
		<content:encoded><![CDATA[<p>[...] this old post I spoke about a user type that permits you to store a IList&lt;String&gt; property with [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
