none
EF 4.1 What happens when DbContext goes out of scope? RRS feed

  • Question

  • Do all the cached records in the DbSet<>'s go out of scope? If not, I assume that DbContext is a handle to some singleton object?

    In my MVC app, I'm wondering if I have to stuff the DbContext off in some global object. Or whether I can use the using (DbContext foo =...) per call and still have all the entity objects in memory.

    Thursday, July 7, 2011 11:57 PM

Answers

All replies