// contains 3 entries
// still contains 3 entries
DbSet has a property
Local. This is an
ObservableCollection that contains all elements. The
DbSet object itself represents just the query to the database.
From the documentation of the
Gets an ObservableCollection that represents a local view of all Added, Unchanged, and Modified entities in this set. This local view will stay in sync as entities are added or removed from the context. Likewise, entities added to or removed from the local view will automatically be added to or removed from the context.
So if you want to access the elements, always use the
Local property to do it.