title: Computed properties in NHibernate
body: <p>I'm having a problem in mapping an existing data class member to the database..</p>
  
  <p>I have a database table where one of the columns is a string type, but actually stores a comma separated list of numbers. My data class shows this field as a list of integers.</p>
  
  <p>The problem is that I couldn't find any hook in NHibernate that allows me to invoke the custom code that is required to replace the string field by the list and vice versa.</p>
  
  <p>To illustrate (simplified of course):</p>
  
  <p>The database table:</p>
  
  <pre><code>CREATE TABLE dummy (
      id serial,
      numlist text -- (can store values such as '1,2,3')
  )
  </code></pre>
  
  <p>The data class:</p>
  
  <pre><code>class Dummy {
      public int Id;
      public List&lt;int&gt; NumbersList;
  }
  </code></pre>
  
  <p>Can anyone help?</p>