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

[release/5.0] Query: Use stronger reflection in Queryable/Enumerable methods #24116

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

smitpatel
Copy link
Contributor

Resolves #24002

Description

As per dotnet/runtime#28776, there are new queryable/enumerable method overloads of existing methods are being added. We use reflection to get some of the methods which EF Core translates and uses in generating result. Those new overloads could cause error in finding correct method.

Customer Impact

Customers won't be able to use EF Core 5.0 on net6 platform.

How found

Indicated on API proposal by customers.

Test coverage

Whole query pipeline uses both classes so any error in reflection will cause all query tests to fail due to type initialization error.

Regression?

No. This is to make code forward-compatible for platform.

Risk

Very low. All tests verify that current code for reflection is correct. Comparison based on exact type of arguments validates that this would not need to be changed in future.

@ajcvickers ajcvickers added this to the 5.0.x milestone Feb 17, 2021
@leecow leecow modified the milestones: 5.0.x, 5.0.5 Feb 18, 2021
@smitpatel smitpatel requested a review from a team March 10, 2021 00:57
@smitpatel smitpatel merged commit fbe40a1 into release/5.0 Mar 10, 2021
@smitpatel smitpatel deleted the smit/mirror5.0 branch March 10, 2021 03:27
@ajcvickers ajcvickers removed this from the 5.0.5 milestone May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants