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 ".
The table is in a DB2 database, so some of tools for autogenerating code are not applicable.
Update
The file and the class looks rather like the following (where where WHO is the primary key)
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; }