Hi,
what is the right way to refresh entitycollection from database?
When simply use following code, only new records from DB are added to entitycollection, but updated records are not affecting my entity collection.
Using adapter As New DataAccessAdapter()
adapter.FetchEntityCollection(ecCustomers, Nothing)
End Using
It works fine if I call ecCustomers.Clear() first, and then fetch
Using adapter As New DataAccessAdapter()
ecCustomers.Clear()
adapter.FetchEntityCollection(ecCustomers, Nothing)
End Using
Is there any better way how to refresh from DB?