internal static async Task InsertAsync(int i) { var entity = new MessageEntityMs { PartitionKey = Guid.NewGuid().ToString(), RowKey = "demo", Message = "MS_InsertAsync" }; var table = _tableClient.GetTableReference("perf"); var insertOperation = TableOperation.Insert(entity); await table.ExecuteAsync(insertOperation); }
internal static async Task GetAsync() { var entity = new MessageEntityMs { PartitionKey = "006c7e09-261b-4081-a021-db8032bcc01b", RowKey = "demo" }; var table = _tableClient.GetTableReference("DemoTable"); var retrieveOperation = TableOperation.Retrieve <MessageEntityMs>(entity.PartitionKey, entity.RowKey); var retrievedResult = await table.ExecuteAsync(retrieveOperation); var x = retrievedResult.Result != null; var result = retrievedResult.Result as MessageEntityMs; }