I am trying to access the DbSet
function to load the entities. This function no longer exists in EF 6.0; upon certain investigation I foun
DbSet.ToList() will return all items from given set, and will populate the DbSet.Local property. You can call either ToList() or Load(). You do not need to reference Local property though, you could create manually ObservableCollection.
return new ObservbableCollection(DataBaseContext.Set().ToList());
There could be a difference between the ToList() and Local. If for example, this is not the first time you are executing a query on the customer set, Local could contain data that is invalid, if the data was deleted on the network.