Skip to content

Instantly share code, notes, and snippets.

@gbellmann
Created April 19, 2015 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbellmann/7b33f961a583e2f6c6f4 to your computer and use it in GitHub Desktop.
Save gbellmann/7b33f961a583e2f6c6f4 to your computer and use it in GitHub Desktop.
Making a combined filter for Azure table storage.
string filter1 = TableQuery.GenerateFilterCondition("PartitionKey", QueryComparisons.Equal, "Argentina");
string filter2 = TableQuery.GenerateFilterCondition("Name", QueryComparisons.Equal, "Guillermo");
string combinedFilter = TableQuery.CombineFilters(filter1, TableOperators.And, filter2);
TableQuery query = new TableQuery().Where(combinedFilter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment