KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I have an entity framework 4 context, normally if I have run a query like: db.Invoices.Where(I => whatever); and then later run something else: db.Invoices.Where(I => something_else); any objects returned from the second query, which were also returned from the first, will not be loaded from the database. EF will just take the object it already has for that key. Question, what is the best way to turn this feature off? Can I tell EF to load each and every object it needs from the database without exception? Thanks!
Tags (comma-separated)
Save Edits
Cancel