Azure Table Combined Filter (need more that 2...) RRS feed

  • Question

  • I have the following code accessing Azure Table Storage. This works fine passing in one State (partition key) with a date filter.

                        pkFilter = TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, StateName);
                        CombinedFilter = TableQuery.CombineFilters(pkFilter, TableOperators.And, DateFilter);

    My use case is to be able to dynamically build this filter with 1 to many states as some times I need to look up 1 state... sometimes several based on what is being sent in from the multiselect form. 

    Thanks in Advance.

    Friday, November 16, 2018 4:56 PM

All replies

  • This is an Azure Table query... MSFT moved it to Cosmos....
    Tuesday, December 4, 2018 1:00 PM