Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore specified query filters #31869

Closed
amyboose opened this issue Sep 26, 2023 · 1 comment
Closed

Ignore specified query filters #31869

amyboose opened this issue Sep 26, 2023 · 1 comment

Comments

@amyboose
Copy link

What problem are you trying to solve?

I want to ignore some global query filters and use other query filters

Describe the solution you'd like

I would like to have generic version of IgnoreQueryFilters:

List<Post> result = context.Set<Blog>()
    .IgnoreQueryFilters<Post>()
    .ToList();

It also usefull to have global ignore filter to prevent issue. For example in some cases I want to load ignore Deleted flag for Blog even when it has global QueryFilter
I see solution like this:

modelBuilder.Entity<Post>(builder =>
{
    builder
        .IgnoreQueryFilter(x => x.Blog.Deleted);
});
@roji
Copy link
Member

roji commented Sep 26, 2023

Duplicate of #17347

@roji roji marked this as a duplicate of #17347 Sep 26, 2023
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants