This may be somewhat related to this SO question. How to execute a case-sensitive LINQ query in Azure? . However, I am using Storage Client 3.0, not linq and TableStorageContext queries in this question.
I have a table storage object called Account that has a string property for an email address. The email property is not a section key or a row key.
I want to search for an object with an appropriate email address, not case sensitive, so the search for " bob@test.com " returns " Bob@Test.com ", etc.
My code looks something like this:
TableQuery<Account> rangeQuery = new TableQuery<Account>().Where( TableQuery.CombineFilters( TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "account"), TableOperators.And, TableQuery.GenerateFilterCondition("Email", QueryComparisons.Equal, email))); var results = accountsTable.ExecuteQuery(rangeQuery).ToList();
Is there a way to execute a case-insensitive query using the tableQuery class, or is there a different approach? Should I just focus on data processing and ensure that all data is forcibly consistent?
azure azure-storage azure-table-storage
Chrisw
source share