I create DynamicTableEntity as follows:
string env = "envTest";
stting ver = "1.0";
siring id = "12356";
string mode = "verify";
DynamicTableEntity entryEntity = DynamicTableEntity(env,ver);
entryEntity.Properties.Add("Id", id);
entryEntity.Properties.Add("Mode", mode);
As a result created a table with columns:"Id", "Mode", "PartitionKey", "RowKey" I want to change the names of "PartitionKey", "RowKey", i.e. I want the env to be a partitionKey but but The column name to be "Env". How can I do it?
Simple answer is that you can't.
PartitionKey
andRowKey
are system defined attributes (along withTimestamp
) and you can't change their name. What you could do is define two more custom attributes forEnv
andVer
if you need to access the properties by these names in your application.