-
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
Behavior of query filters with navigations vs. includes #11957
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Last night I was working on some tests in my project and ran across this one test that exhibits behavior that I didn't expect:
https://github.com/aspnet/EntityFrameworkCore/blob/69f870ab1f32b3185c3599887fbe020c0f70c445/src/EFCore.Specification.Tests/Query/FiltersTestBase.cs#L114-L120
https://github.com/aspnet/EntityFrameworkCore/blob/8790253a195064fcd8b0151fb15165523489731e/test/EFCore.SqlServer.FunctionalTests/Query/FiltersSqlServerTest.cs#L165-L181
The Customer query filter is applied to the include, but not to the expansion of the Customer navigation inside of the Order query filter. I'm not sure if this is semantically correct, or if this just avoids the dreaded infinite circular application of query filters between two or more entity types. If this is by design you can yell at me and click on 'close issue' so hard your mouse and/or trackpad shatters. 😉
The text was updated successfully, but these errors were encountered: