I am searching for some examples or documentation on how to use the Azure SDK to store and retrieve data in Azure Table Storage.
I use C# with .NET 4.5 framework.
I found https://www.windowsazure.com/en-us/develop/net/how-to-guides/table-services/ documentation here.
the part:
// Create the CloudTable object that represents the "people" table.
CloudTable table = tableClient.GetTableReference("people");
// Create a new customer entity.
CustomerEntity customer1 = new CustomerEntity("Harp", "Walter");
customer1.Email = "Walter@contoso.com";
customer1.PhoneNumber = "425-555-0101";
// Create the TableOperation that inserts the customer entity.
TableOperation insertOperation = TableOperation.Insert(customer1);
// Execute the insert operation.
table.Execute(insertOperation);
is not available anymore.
Does anybody know how to do this with .NET 4.5?
Best Regards
This code works fine. While the documentation mentions version 2.0, this points to the version of the storage SDK and not the version of .NET.
Edit:
In order to get the GetTableReference method you need to do the following:
Install-Package WindowsAzure.Storage)