title: nhibernate : read write list of string
body: <p>I know I can read write list of string like below using nhibernate</p>
  
  <pre><code>HasMany(x =&gt; x.Attachments)
      .KeyColumn("RowId")
      .Table("PostTable").Element("PostKey");
  </code></pre>
  
  <p>But this creates an extra table, is there a way e.g. <a href="https://stackoverflow.com/questions/606607/mapping-collection-of-strings-with-nhibernate">UserType</a> or something else, so that we can directly write to list... if yes any example of custom UserType using nhibernate?? with sample code...</p>
  
  <p>I also want that If i add value to list that also should be saved. I have seen below example code which breaks in case we add value to list... </p>
  
  <pre><code>   private virtual string StringValue
     public virtual IList&lt;string&gt; valueList
          { 
            get { return StringValue; }
            set { StringValue = string.Join(value, "|"); } 
           }
  </code></pre>