I'm having problems with getting data using LINQ-to-SQL. I use the following piece of code to look up a user for our web app (user name is email address):
var referenceUser =
db.ReferenceUsers
.SingleOrDefault(rf => rf.Email == values["emailAddress"]);
If I type [email protected]
I get a ReferenceUser
however if I type [email protected]
I don't. How can I get LINQ to ignore the case when selecting a user?