.NET Core 2.2.0
I would like to use Wildcards in EF Core
's Like function, but it doesn't work the way I expect and I've read about in some posts (best example here)
My Code:
List<string> list = new List<string>();
list.Add("Hi fransois");
list.Add("Hi francois");
list.Add("Hi françois");
List<string> testa = list.Where(a => EF.Functions.Like(a, "%francois%")).ToList(); // Results in 1 hit, as expected
List<string> testb = list.Where(b => EF.Functions.Like(b, "%françois%")).ToList(); // Results in 1 hit, as expected
List<string> testc = list.Where(c => EF.Functions.Like(c, "%fran[cç]ois%")).ToList(); // Results in 0 hits, EXPECTED: 2
Why doen't this work as expected?