title: Can I only retrieve an element of an objectset if i call save changes?
body: <p>I have the following code:</p>
  
  <pre><code>context.MyEntities.AddObject(new Entity() { Id = 1 });
  var entity = context.MyEntities.Where(e =&gt; e.Id == 1).FirstOrDefault();
  </code></pre>
  
  <p>I didn't call save changes yet, so i'm trying to retrieve the object that i added, but the <code>entity</code> is null. Why?</p>