O'Reilly logo
  • Daniel Vega thinks this is interesting:

The in-memory data for a DbSet is available via the Local property. Local will return all the data that has been loaded from the database plus any newly added data. Any data that has been marked as deleted but hasn’t been deleted from the database yet will be filtered out for you. More information on how entities get into these different states is available in Chapter 3.


Cover of Programming Entity Framework: DbContext


Property local