Shabar
Shabar

Reputation: 2821

Search non partition key in Azure Storage table

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

Access Azure Storage

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

Answers (1)

forester123
forester123

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

Related Questions