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

Exclude Object when checking for DbContext in query filters #18761

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

roji
Copy link
Member

@roji roji commented Nov 5, 2019

Fixes #18759

@smitpatel if we really want to avoid QueryBugsTest we can simply remove the equality operator from Customer and the bug should repro in FiltersQueryBase.Entity_Equality. But this seems subtle enough that a query bug test makes sense (i.e. to avoid someone defining an operator again in the future). Let me know what you prefer.

@roji roji force-pushed the ObjectIdentifiedAsContext branch from 35587b3 to c0bb431 Compare November 5, 2019 16:28
@smitpatel
Copy link
Contributor

smitpatel commented Nov 5, 2019

Querybugstest is fine. This is core functionality so we are not missing out anything by running on only 1 provider.

@roji roji merged commit e6fba07 into master Nov 5, 2019
@roji roji deleted the ObjectIdentifiedAsContext branch November 5, 2019 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QueryFilter (cont): KeyNotFoundException: The given key '__ef_filter__p_0' was not present in the dictionary.
2 participants