Skip to content

Ability to refresh a context from the database #16491

@knightmeister

Description

@knightmeister

I'm raising this as I've seen #11706 and #2296 are closed.

I require this functionality for GUI applications, for which EF Core is a viable target - specifically via Xamarin and UWP.

It is possible with EF6 to refresh the context by using Refresh(RefreshMode.StoreWins)

I totally understand that contexts are suggested per-unit of work however GUI applications have long living components (such as the main screen) for which a unit of work isn't suitable.

At this stage I have implemented an internal message bus which indicates when a single entity should be reloaded, but it would be nice to be able to refresh the store and all tracked entities in EF Core.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions