Reputation: 2821
Just wondering whether it is possible to search non-partition key from Azure storage table.
I am using following link to access records. But there always have to give PartitionKey
and RowKey
In case if I have a other column value in the table apart from PartitionKey
and RowKey
how should I do that?
Upvotes: 1
Views: 162
Reputation: 1579
The answer is yes, you can search any properties by using below query:
TableQuery<myEntity> query = new TableQuery<myEntity>().Where(TableQuery.GenerateFilterCondition("columne_name", QueryComparisons.Equal, "column_value"));
GenerateFilterCondition doesn't require you to search through partitionkey or rowkey, you can search any properties you want.
Upvotes: 3