How can I set multiple filters on a Azure Table Storage?
This is what I\'ve tried:
string partitionFilter = TableQuery.GenerateFilterCondition(\"Partitio
Just handling the case of a new query that does not have a filter already and based on @LivingOnACloud, I would rather write it this way:
public static TableQuery AndWhere(this TableQuery query, string filter)
where TElement : ITableEntity,new ()
{
if (query.FilterString.IsNullOrEmpty())
{
query.FilterString = filter;
}
else
{
query.FilterString = TableQuery.CombineFilters(query.FilterString, TableOperators.And, filter);
}
return query;
}
And the rest follow the same check, things can go nicer.