-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Make ignoring query filters more flexible #17347
Milestone
Comments
Runs into same issue as #6717 |
ajcvickers
changed the title
Query: IgnoreQueryFilters on DBSet and IIncludeableQueryable
Make ignoring query filters more flexible
Aug 26, 2019
See #10275 (comment) |
This was referenced Jun 29, 2020
See also the experience for explicit loading in #21349 |
I have a similar issue where I would appreciate an optional true/false parameter for the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently filtering is turned off for all entities if IgnoreQueryFilters() is present somewhere in a query.
It would be more useful if it was scoped by context.
I.e., on DbSet, it would only be for that reference of the entity. Same for Include().
Anywhere else it would apply globally as today.
It might be better to call the new ignore methods something else e.g., IgnoreEntityFilters().
I'm aware that this topic has been discussed before and dismissed. Still, I hope you will read this as friendly reminder of the need and reconsider :-)
Some code to illustrate the point:
Further technical details
EF Core version: 3.0.0-preview9.19420.21
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2019 16.3.0 preview 2.0
The text was updated successfully, but these errors were encountered: