Exemple #1
0
        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);
            }
        }
Exemple #2
0
        static void CreateMessage(CloudTable table, TestCreatetbl message)
        {
            TableOperation insert = TableOperation.Insert(message);

            table.Execute(insert);
        }