Rename PartitionKey and RowKey in Azure Tables

July 1, 2009 · Posted in Development · 2 Comments 

I’m currently having a play around with some Windows Azure bits and whilst doing so have been looking into using the Azure table storage.

One requirement of Azure table storage is the use of a PartitionKey and a RowKey, both of which when combined uniquely identify an entity in the Azure table. As the use of a good PartitionKey can lead to many benefits in terms of scaling it is a good idea to use a useful property of an object as the partition key, however the partition key must be called ‘PartitionKey’ which leads to a situation where an important property within a class is simply called ‘PartitionKey’ and to know what that property represents you have to either remember it or keep checking your comments.

At first I attempted to simply create a property to wrap the partition key like so:
Read more