Skip to content

Fix client-side evaluation for string comparison queries - #2053

Closed
SiberaIndustries wants to merge 1 commit into
OData:masterfrom
SiberaIndustries:client-side-query-evaluation-elimination
Closed

Fix client-side evaluation for string comparison queries#2053
SiberaIndustries wants to merge 1 commit into
OData:masterfrom
SiberaIndustries:client-side-query-evaluation-elimination

Conversation

@SiberaIndustries

@SiberaIndustries SiberaIndustries commented Feb 16, 2020

Copy link
Copy Markdown
Contributor

Issues

This pull request fixes issue #2043 and fixes issue #2078.

Description

Entity Framework Core 3.0 throws an exception when the framework can't translate a linq expression to SQL (called: client-side evaluation).

This PR fixes the special case of string comparisons. EF Core can translate string.Compare(string, string) to SQL but it can't translate any overload of string.Compare. This is why the StringComparison argument gets removed.

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

@mikepizzo mikepizzo modified the milestones: 7.4, 7.5 May 6, 2020
@mikepizzo mikepizzo modified the milestones: 7.5, 7.4.1 May 21, 2020

@mikepizzo mikepizzo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KanishManuja-MS is verifying with the EF team that this is the right solution. As long as they ack, I'm fine with the fix -- thanks @SiberaIndustries!

@xuzhg

xuzhg commented May 22, 2020

Copy link
Copy Markdown
Member

Merged at: 63f1c66

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.

4 participants