Hi I have below method which I calling in and that generates two string value(Partition Key and Row key). and My json do not have these two keys, so I would like to add these two values in my existing Json.
I need help in modifying my code below to add these two keys and values:
internal async Task<(string, string)> GenerateKeys( Dictionary<string, EntityProperty> arg )
{
var result = await GenerateValuesFromScript( arg, sbForKeyColumns );
return (result.First().ToString(), result.Last().ToString());
}
var content = JsonConvert.DeserializeObject<JObject>( lines );
await GenerateKeys( jsonDictionary );// above method is called and two values are returned
content.Add( new JProperty( "PartitionKey", "//this is where I have to pass the above 1st values" ) );
content.Add( new JProperty( "RowKey", "//this is where I have to pass the above 2nd values" ) );