title: Nhibernate could not resolve property exception when using QueryOver, works on QueryAll
body: <p>I have the following problem<br>
  Basically I have the 2 snippets below:  </p>
  
  <pre><code>var contactAssociation =
      session.QueryOver&lt;ContactAssociation&gt;(() =&gt; contactAssociationAlias)
          .Where(() =&gt;
               contactAssociationAlias.Contact.ID == careGiverId &amp;&amp;
               contactAssociationAlias.Client.ID == clientKey)
          .Where(() =&gt;
               contactAssociationAlias.AclRole.RoleName == "Care Giver")
          .SingleOrDefault();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>var contactAssociation = session.Query&lt;ContactAssociation&gt;()
      .Where(cr =&gt;
          cr.Contact.ID == careGiverId
          &amp;&amp; cr.Client.ID == clientKey)
      .Where(cr =&gt;
          cr.AclRole.RoleName == "Care Giver")
      .SingleOrDefault();
  </code></pre>
  
  <p>the second one works the first one outputs this error:</p>
  
  <pre><code>Message=could not resolve property: AclRole.RoleCode of:
  SL.STAdmin.DAL.ContactAssociation
  </code></pre>
  
  <p>Does anyone know why this is?
  Thank you in advance</p>