EF Core 3.0 translating string.Equals ordinalIgnoreCase correctly
问题 Before EF Core 3.0 this worked fine (evaluated on server+client): var exists = await _context.Countries.AsNoTracking().AnyAsync(x => x.CountryCode.Equals(country.CountryCode, StringComparison.OrdinalIgnoreCase)); What is the best/preferred method to translate the string.Equals(str, StringComparison.OrdinalIgnoreCase) -part now in EF Core 3.0, so that the query evaluates only on the server side. var exists = await _context.Countries.AsNoTracking().AnyAsync(x => x.CountryCode.ToUpper() ==