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
{{ message }}
Repository navigation
Ability to refresh set of entities with store values #2296
Has this enhancement been implemented? We are currently using EF7 and seeing an issue where I update the database but the change is not being reflected in the DB Context. Therefore need to refresh.
@rowanmiller is there any progress or a workaround for this? Currently, the only way I can reset the cached values is restarting my entire application which is obviously not appropriate.
@Steve887 this feature has not been implemented yet.
Currently, the only way I can reset the cached values is restarting my entire application which is obviously not appropriate.
How about just creating a new instance of you context? We generally advise against having a global instance of your context that is shared throughout the application. In general you tend to get better performance with smaller scoped contexts that are used for an operation and then thrown away.
Closing as we haven't seen significant demand for this feature. We could revisit this decision based on feedback and we would also consider a well-written community PR for it.
Activity
devr24 commentedon Feb 4, 2016
Has this enhancement been implemented? We are currently using EF7 and seeing an issue where I update the database but the change is not being reflected in the DB Context. Therefore need to refresh.
rowanmiller commentedon Feb 4, 2016
@rmccabe24 no, not yet. It will most likely be post v1.0.0
devr24 commentedon Feb 4, 2016
Thats really unfortunate. When is the expected release of v1.0.0?
rowanmiller commentedon Feb 4, 2016
We will release at the same time as ASP.NET Core, and there are no definite dates around that just yet. They will be public as soon as we have them.
Steve887 commentedon Mar 16, 2016
@rowanmiller is there any progress or a workaround for this? Currently, the only way I can reset the cached values is restarting my entire application which is obviously not appropriate.
rowanmiller commentedon Mar 25, 2016
@Steve887 this feature has not been implemented yet.
How about just creating a new instance of you context? We generally advise against having a global instance of your context that is shared throughout the application. In general you tend to get better performance with smaller scoped contexts that are used for an operation and then thrown away.
ajcvickers commentedon Feb 17, 2018
Closing as we haven't seen significant demand for this feature. We could revisit this decision based on feedback and we would also consider a well-written community PR for it.