services | platforms | author |
---|---|---|
storage |
dotnet |
jasonnewyork |
Demonstrates how to perform common tasks using the Microsoft Azure Table storage including creating a table, CRUD operations, batch operations and different querying techniques.
Note: This sample uses the .NET 4.5 asynchronous programming model to demonstrate how to call the Storage Service using the storage client libraries asynchronous API's. When used in real applications this approach enables you to improve the responsiveness of your application. Calls to the storage service are prefixed by the await keyword. If you don't have a Microsoft Azure subscription you can get a FREE trial account here
This sample can be run using either the Azure Storage Emulator that installs as part of this SDK - or by updating the App.Config file with your AccountName and Key. To run the sample using the Storage Emulator (default option):
- Download and Install the Azure Storage Emulator here.
- Start the Azure Storage Emulator (once only) by pressing the Start button or the Windows key and searching for it by typing "Azure Storage Emulator". Select it from the list of applications to start it.
- Set breakpoints and run the project using F10.
To run the sample using the Storage Service
- Open the app.config file and comment out the connection string for the emulator (UseDevelopmentStorage=True) and uncomment the connection string for the storage service (AccountName=[]...)
- Create a Storage Account through the Azure Portal and provide your [AccountName] and [AccountKey] in the App.Config file.
- Set breakpoints and run the project using F10.