From the course: ASP.NET Core: Working with Azure Tables

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Retrieving all entities from Azure Table storage

Retrieving all entities from Azure Table storage - ASP.NET Core Tutorial

From the course: ASP.NET Core: Working with Azure Tables

Start my 1-month free trial

Retrieving all entities from Azure Table storage

- [Instructor] On this part, you'll learn how to get all the entities from an Azure table. So, let's go to Visual Studio and see it in action. In Visual Studio, go to operations.cs file, then scroll down to the try and catch block. Here, let us copy line 21. So, ctrl + C and then ctrl + V. We are going to name this new method RetrieveAllDataOperation, ctrl + K + C to comment out the line 21. Now, scroll down in here to line 51. I'll just copy this text, and then paste it down here. So this is our new method, and the name for this method is the RetrieveAllDataOperation. Let us replace the UpdateDataOperation with the RetrieveAllDataOperation. Now, in here, we are going to basically just retrieve all the data, so all the entities from a single table. For that, we need to construct a query. So let's write in here var allDataQuery is equal to, then we're going to use the CloudTable, and then in the CloudTable, we…

Contents