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

EF primitive collection - nested string comparison operations #31030

Closed
Tracked by #30731
alienwareone opened this issue Jun 5, 2023 · 0 comments · Fixed by #31110
Closed
Tracked by #30731

EF primitive collection - nested string comparison operations #31030

alienwareone opened this issue Jun 5, 2023 · 0 comments · Fixed by #31110
Assignees
Labels
area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-bug
Milestone

Comments

@alienwareone
Copy link

dbContext.Users.Where(x => !excludeEmails.Any(email => email.StartsWith("*")
  ? email.EndsWith("*") ? x.Email.Contains(email) : x.Email.StartsWith(email)
  : email.EndsWith("*") ? x.Email.EndsWith(email) : x.Email == email));

An exception of type 'System.InvalidOperationException' occurred in Microsoft.EntityFrameworkCore.Relational.dll but was not handled in user code: 'Store type 'nvarchar(max)' was inferred for a primitive collection, but that primitive collection was previously inferred to have store type 'nvarchar(max)'.'

Reproduction repository: https://github.com/alienwareone/EfCorePrimitiveCollection/tree/master

@roji roji self-assigned this Jun 5, 2023
@ajcvickers ajcvickers added this to the Backlog milestone Jun 19, 2023
roji added a commit to roji/efcore that referenced this issue Jun 20, 2023
roji added a commit to roji/efcore that referenced this issue Jun 20, 2023
@ajcvickers ajcvickers modified the milestones: Backlog, 8.0.0-preview4 Oct 11, 2023
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 11, 2023
@ajcvickers ajcvickers modified the milestones: 8.0.0-preview4, 8.0.0 Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants