title: Fluent-Nhibernate References and PropertyRef Doing a Select With Lazy Load
body: <p>I am using <code>PropertyRef</code> for one of my <code>References</code> properties. With <code>LazyLoad()</code> it still does a Select and loads the <code>User</code> entity, even though I never "hit" the SalesPerson property.</p>
  
  <p><strong>Order Mapping</strong></p>
  
  <pre><code>Id(x =&gt; x.Id).GeneratedBy.Native();
  References(x =&gt; x.SalesPerson)
                          .LazyLoad()
                          .PropertyRef(x =&gt; x.Username)
                          .Column("rsm");
  Map(x =&gt; x.Title);
  </code></pre>
  
  <p><strong>Order Class</strong></p>
  
  <pre><code>public class Order : BaseEntity
  {
      ...
      public virtual User SalesPerson { get; set; }
      public virtual string Title { get; set; }
      ...
  }
  </code></pre>
  
  <p><strong>User Mapping</strong></p>
  
  <pre><code>Id(x =&gt; x.Id).GeneratedBy.Native();
  Map(x =&gt; x.Username).Column("login");
  </code></pre>
  
  <p><strong>User Class</strong></p>
  
  <pre><code>public class User : BaseEntity
  {
       public virtual string Username { get; set; }
       ...
  }
  </code></pre>
  
  <p><strong>Generated Order Mapping</strong></p>
  
  <pre><code>&lt;many-to-one class="Project.User" lazy="proxy" name="SalesPerson" property-ref="Username"&gt;
        &lt;column name="rsm" /&gt;
  &lt;/many-to-one&gt;
  </code></pre>
  
  <p><strong>Executing Code</strong></p>
  
  <pre><code>var order = session.Get&lt;Order&gt;(1);
  Console.WriteLine(order.Title);
  </code></pre>
  
  <p>Is there anyway to prevent the Select to load the User entity when I'm not using the <code>User</code> entity?</p>