My table structure has a Partition key, Row key, and a column containing JSON data. I want to query the table based on the partition key and a particular value from the JSON data.
Sample JSON Data:
{"ConsumerId":"7","value01":"850.58"}
The query I have created is
var query = new TableQuery<CloudModelDetail>().Where(TableQuery.CombineFilters(TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, retailerReferenceId),
TableOperators.And, TableQuery.GenerateFilterCondition("CloudModelJsonData","Contains", consumerId)));
But it is not giving me the desired results. Can anyone help me with the correct query?