You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@viveknuna There isn't currently an equivalent in EF Core. context.Entry(foo).Reload() is currently the closest thing, but it only works on a single entity.
In general, we recommend using short-lived contexts that cover a single unit-of-work. This usually makes reloading from the store unnecessary.
With Entity Framework 6, it was possible to refresh all the context with the method :
_myObjectContext.RefreshAsync(RefreshMode.StoreWins, GetAll())
I would like to do the same thing with Entity Framework Core, but I can't find the best way to do that.
So, what's the best way to refresh all the context with EF Core?
The text was updated successfully, but these errors were encountered: