Here’s a short and simple way to get started using Azure Table Storage from ASP.NET MVC 5. Following these brief, task-oriented articles will help you learn the mechanics of working with table storage and give you some pointers on how you might want to approach it in your app.
We’re going to start with the basics, a simple MVC app with a controller that builds the table, inserts a couple of rows and then displays them.
If you want to follow along, please pop into Azure and make sure you’ve got an account ready to go. The trial is free, so get at it!
But then we’re going to expand on that, adding other operations to manipulate the data as well as the tables themselves, and then we’ll take it to the next level where we start to apply some better strategies around how we actually access the data. After all, MVC is all about separation of concerns!
Most of these principles will apply if you need to access a storage table from other areas of .NET as well…you could just as easily apply these to Web API, a console application or your next WinForms project. By the end, we’ll have extracted the important parts out into a reusable block of code that runs equally as well with the Azure Storage Emulator in your development environment as it does in production in the cloud.
- Day 1: The Basics of The Basics with Azure Table Storage
- Day 2: Adding Entities to a Storage Account Table
- Day 3: Extracting a Service to Interact with Table Storage
- Day 4: Manipulating Entities in a Storage Account Table
- Day 5: Deleting Entities from a Storage Account Table
- Day 6: Using Projection with Dynamic TableEntity and EntityResolver
- Day 7: Table Management in your Storage Account
- Day 8: Cloud Configuration and Deployment
Check back for more on the series in the days ahead, all the links will be posted here.
And hey, if you’d like to ramp up in your MVC skills, please check out my recent book: