I am using the entity framework and I\'m having a problem with \"re-finding\" objects I just created... basically it goes like this:
string theId = \"someId
You have a number of options. You could extend the ObjectContext
with another partial class to make your own mechanism for retrieving recently Added information.
Or you could just put an extension method on the ObjectContext
that looks through the ObjectContext.ObjectStateManager
looking for 'added' ObjectStateEntries
, and then use LINQ to Objects to find what you are looking for.