Skip to content

Instantly share code, notes, and snippets.

@gbellmann
Created April 7, 2015 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbellmann/5b2bc4df0b65e3168392 to your computer and use it in GitHub Desktop.
Save gbellmann/5b2bc4df0b65e3168392 to your computer and use it in GitHub Desktop.
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
public object GetEntity(string partitionKey, string rowKey)
{
CloudStorageAccount account = GetAccount();
CloudTableClient cloudTableClient = account.CreateCloudTableClient();
CloudTable table = cloudTableClient.GetTableReference("NombreDeLaTabla");
TableOperation retrieveOperation = TableOperation.Retrieve(partitionKey, rowKey);
TableResult retrievedResult = table.Execute(retrieveOperation);
return retrievedResult.Result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment