title: LINQ SQL Query with a range variable and a constant
body: <p>I have a query where I need to use Join/On, but with that, I get this error message: <strong>You must reference at least one range variable on both sides of the 'Equals' operator.</strong></p>
  
  <p>Here is my simplified query:</p>
  
  <pre><code> Dim Result As String = (From cust In Model.Customer
                               Join comp In Model.Company On cust.Id_Customer Equals 1
                               Select cust.Name, comp.Name)
  </code></pre>
  
  <p>Is there a way I can do the range variable Equals-comparison to a constant?</p>