title: Do entity framework object references equal for same database objects
body: <p>Does entity framework return the same object reference if I query the "logically" (in database) same object from different places.</p>
  
  <p>For example, I queried customer with name Joe Black, (and assume for now I know that there's only one Joe Black in the database.)
  <code>Customer c = select ... blabla where ... Name == Joe Black...;</code> and in somewhere else in the code, I queried <code>Customer c2 = select... where.. ID==5</code> where 5 is the ID of Joe Black. I know that in the database they map to the same object, but DO they also map to the same object in code level? So does c1 equal to c2? I have lists to merge and check for logical equality of the objects (I cannot access the database for now) and I was wondering whether Entity Framework objects will play nicely with it or should I write my custom comparer classes.</p>