title: Find if Object Exists in Dbset
body: <p>I have a <code>DbSet</code> object <code>DbSet&lt;ShippingInformation&gt; ShippingInformations;</code> I have also overridden the <code>equals</code> operator for ShippingInformation.</p>
  
  <p>How can I find if there is an existing object, y in the set <code>ShippingInformations</code> that is equal to object x, both of type <code>ShippingInformation</code>.</p>
  
  <p>So far I have tried:</p>
  
  <pre><code>storeDB.ShippingInformations.Contains(shippingInformation);
  </code></pre>
  
  <p>However, that only works for primitive types.</p>