Skip to content

Ability to refresh set of entities with store values #2296

Closed as not planned
Closed as not planned

Description

@rowanmiller

We have an item to track adding EntityEntry.Reload (#1203) but in EF6 you could also use MergeOption to refresh a set of entities using a query.

Activity

  1. added this to the Backlog milestone on May 29, 2015
  2. devr24 commented on Feb 4, 2016

    @devr24

    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.

  3. rowanmiller commented on Feb 4, 2016

    @rowanmiller
    ContributorAuthor

    @rmccabe24 no, not yet. It will most likely be post v1.0.0

  4. devr24 commented on Feb 4, 2016

    @devr24

    Thats really unfortunate. When is the expected release of v1.0.0?

  5. rowanmiller commented on Feb 4, 2016

    @rowanmiller
    ContributorAuthor

    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.

  6. Steve887 commented on Mar 16, 2016

    @Steve887

    @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.

  7. rowanmiller commented on Mar 25, 2016

    @rowanmiller
    ContributorAuthor

    @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.

  8. self-assigned this
    on Jul 8, 2016
  9. removed their assignment
    on Aug 27, 2016
  10. ajcvickers commented on Feb 17, 2018

    @ajcvickers
    Contributor

    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.

  11. removed this from the Backlog milestone on Feb 17, 2018
  12. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions