title: Fluent NHibernate One-to-One mapping
body: <p>I am having a really hard time exploiting HasOne mapping with Fluent NHibernate. Basically, the class A can have a matching (only one or none) record in the class B.</p>
  
  <p>Please help with the AMap and BMap classes that define the relationships.</p>
  
  <p>Thank you.</p>
  
  <pre><code>public class A
  {
     public virtual int Id {get;set;}
     public virtual string P1 {get;set;}
     public virtual string P2 {get;set;}
     public virtual string P3 {get;set;}
  }
  
  public class B
  {
     public virtual int Id {get;set;}
     public virtual string P4 {get;set;}
     public virtual string P5 {get;set;}
     public virtual string P6 {get;set;}
  }
  </code></pre>