title: Accessing an existing database table using fluent nhibernate
body: <p>I am a beginning at nhibernate and I am trying to connect to a pre-existing database table using fluent-nhibernate. The table has no id field, and I am stuck as to how to get queries to work. I get an error - "Field ID does not exist in ".</p>
  
  <p>The table is in a DB2 database, so some of tools for autogenerating code are not applicable.</p>
  
  <p><strong>Update</strong></p>
  
  <p>The file and the class looks rather like the following (where where WHO is the primary key)</p>
  
  <pre><code>public class Nougal
  {
      public virtual string WHO { get; set; }
      public virtual string YN1 { get; set; }
      public virtual string YN2 { get; set; }
      public virtual string YN3 { get; set; }
      public virtual string YN4 { get; set; }
  </code></pre>