-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
In version 3.1.1, why string contains methods are case-sensitive #1128
Comments
Likely duplicate of #996 |
should I change it to EF.Functions? |
As @mguinness said, we already fixed this for #996. It was a regression bug:
The fix for this is part of our current nightly builds.
If you don't want to use the nightly build, you can use |
ok,thanks,which version i can use in 3.2.0-preview? |
It should show you the dependencies, when clicking on the package in your IDE before updating.
Also, the general versions are listed under Compatibility. Version |
Thanks |
The issue
var query = _repository.GetAll().Where(p => p.Title.Contains(input.Title, StringComparison.CurrentCultureIgnoreCase))
or
var query = _repository.GetAll().Where(p => p.Title.Contains(input.Title)
Using the 2.2 with a lambda with a Where() and a Contains() filter generates the following SQL
The same query using the 3.1 provider generates the following SQL
Further technical details
MySQL version: 5.7.22 or 8.0
Operating system: Win10 or Centos 8 docker
Pomelo.EntityFrameworkCore.MySql version: 3.1.1
The text was updated successfully, but these errors were encountered: