Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

Filters not taking effect when context caches entities? #22

Description

@bjtaylor1

Hi,
I tried to use this library for a filtering requirement my project has the other day.
It works great in terms of SQL - as long as a database query is actually run.
However, sometimes, the filter doesn't take effect and I think this is because EF has somehow 'cached' the entities - I know this because if I do a trace in SQL profiler, and refresh the page with changed parameters passed to the filter, then no new SQL query is run. The changed parameters have not taken effect.
However if I recycle the app pool, then refresh again with the changed paramters, then it does a new SQL query and the changed parameters take effect.
I was just wondering if there is any way round this?

Thanks

Activity

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