title: == operator cannot be applied of type int and string -- LINQ statement with ==
body: <p>I am writing a LINQ statement like this</p>
  
  <pre><code>var v1 = from c in context.Orders
           join c1 in context.Order_Details
           on c.OrderID equals c1.OrderID
           where c.CustomerID == 1
           group c1 by c1.ProductID into x
           select x;
  </code></pre>
  
  <p>But its giving me error that </p>
  
  <blockquote>
    <p>== cannot be applied to operands of type int and string</p>
  </blockquote>
  
  <p>There is following question <a href="https://stackoverflow.com/questions/1230551/comparison-operators-not-supported-for-type-system-linq-iqueryable1system-int">Comparison operators not supported for type &#39;System.Linq.IQueryable`1[System.Int32]&#39;</a>
  But this question does not solve my problem</p>
  
  <p>How can I fix the above problem, thanks</p>