I have a very simple Linq-to-SQL query that returns a boolean:
using (MyDataContext TheDC = new MyModelDataContext())
{
return !TheDC.SomeTable.Any(l => l.UserID == SomeLong && l.ColumnName == SomeString);
}
The problem is that when the comparison involves strings that differ by the case of some letters, it returns false. For instance, if the table contains testString
and SomeString is TestString
, it returns false.
How can I rewrite it?