I am using Windows Azure storage tables and want to query an object. The user enters the string I'm looking for in the database as such:
var myKey = "SomeCaseSensitiveKeyInputByTheUser"; var someObject = (from o in dataContext.Objects where o.SomeString.Equals(myKey) select o).FirstOrDefault();
However, for some reason, all string comparisons look case insensitive (both == and string.Equals() ). However, I need to map the exact shell of the user input line.
How can I do this in my LINQ query?
c # linq azure azure-table-storage
Roy de jong
source share