I am using EF 6 + npgsql. I am trying to run a query that checks if a user with a given name (case insensitive) exists in db. I tried:
context.Users.Any(u => u.Name.Equals(username, StringComparison.InvariantCultureIgnoreCase))
however it doesn't work. Any help ?