Is there a way to query or just access a newly added object (using the ObjectContext.AddObject method) in the Entity Framework? I mean a situation when it has not yet been saved to the data warehouse using SaveChanges
I understand that queries are translated into basic SQL and run against a data warehouse, and it does not yet have this new object. But, in any case, I am curious - if this is not justified, perhaps this is possible in theory. If this is not the case, how can a developer handle this? Manually track new objects and query them using Linq for objects?
The same question applies to LinqToSql.
source
share