title: LINQ compare 2 different fields from 2 aliases ERROR
body: <p>I hope to explain myself.</p>
  
  <p>Why in LINQ I can't compare 2 different fields from 2 different tables (aliases), is there a problem with such action?</p>
  
  <p>Let's say I have the following code :</p>
  
  <pre><code>return (from v in ctx.Xrm.rms_account_vehicleSet
          join j in ctx.Xrm.rms_jurisdictionSet on v.rms_l_jurisdiction.Id equals j.rms_jurisdictionId
          where v.jurisdiction_number == j.jur_number
          select v).FirstOrDefault();
  </code></pre>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>Typea<code>2[&amp;lt;&gt;f__AnonymousType9</code>2[Rms.Crm.Common.DataModel.RmsSchema.rms_account_vehicle,Rms.Crm.Common.DataModel.RmsSchema.rms_jurisdiction]' referenced from scope '', but it is not defined</p>
  </blockquote>
  
  <p>Thank you.</p>