static void UpdateMessage(CloudTable table, string partitionKey, string rowKey, string newMessage) { TableOperation retrieve = TableOperation.Retrieve <TestCreatetbl>(partitionKey, rowKey); TableResult result = table.Execute(retrieve); TestCreatetbl thanks = (TestCreatetbl)result.Result; thanks.ETag = "*"; thanks.Name = newMessage; if (result != null) { TableOperation update = TableOperation.Replace(thanks); table.Execute(update); } }
static void CreateMessage(CloudTable table, TestCreatetbl message) { TableOperation insert = TableOperation.Insert(message); table.Execute(insert); }