title: EF 4.1 / Linq-to-SQL: What is better: using Equals or ==?
body: <p>We're having a discussion about using <code>Equals</code> or <code>==</code> on an int comparison in a LINQ query. We're using EF4.1 Code First. What is better?</p>
  
  <pre><code>var query = context.Boodschappen
                     .Where(b =&gt; b.BoodschapID == id).FirstOrDefault();
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>var query = context.Boodschappen
                     .Where(b =&gt; b.BoodschapID.Equals(id)).FirstOrDefault();
  </code></pre>
  
  <p>And <strong>why</strong>?</p>