This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloudStorageAccount storageAccount = CloudStorageAccount.Parse( | |
CloudConfigurationManager.GetSetting("StorageConnectionString")); | |
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();x | |
CloudTable table = tableClient.GetTableReference("people"); | |
TableOperation retrieveOperation = TableOperation.Retrieve<CustomerEntity>("Younas", "Tariq"); | |
TableResult retrievedResult = table.Execute(retrieveOperation); | |
if (retrievedResult.Result != null) | |
{ | |
Console.WriteLine(((CustomerEntity)retrievedResult.Result).PhoneNumber); | |
} | |
else | |
{ | |
Console.WriteLine("Unable to pull the phone number."); | |
} |