title: How can I use Entity Framework to search only the Store not the local data?
body: <p>I'm using EF 4.1 and still trying to figure out some of the details. I have a parent(one)-child(many) relationship in the database. The EF object that represents that child has a property that represents the one parent. I explicitly set the child.parentId FK field and then I can do a context.Add(child), followed by a context.SaveChanges() and the child record with the correct parent foreign key shows up in the database. All is good as far as the db is conerned. </p>
  
  <p>However, while the in memory child object gets updated correctly with things like the PK  identity column that parent Property field remains null. I was surprised by this, is this normal? Once the record is created and I come back into the app, the navigation to the parent always works. It just appears that right after the child is created the parent navigation property is not updated.</p>
  
  <p>I was thinking perhaps I could then just search the context for the child I just created  based on the returned PK and get a fully populated child object but it doesn't work. It seems I just get back an identical object. I think it's just searching the local cache and returning the object I already have. I noticed that context.Child.Local seems to be a way to look at just the local view but I didn't see a "store" counterpart. </p>