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 - ASP.NET Core Tutorial
From the course: ASP.NET Core: Working with Azure Tables
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
-
-
-
-
-
(Locked)
Creating a table in Azure Table storage5m 8s
-
(Locked)
Adding an entity into Azure Table storage11m 6s
-
(Locked)
Updating an entity in Azure Table storage4m 15s
-
(Locked)
Retrieving all entities from Azure Table storage3m 49s
-
(Locked)
Challenge: Retrieve a single entity from Azure Table storage55s
-
(Locked)
Solution: Retrieve a single entity from Azure Table storage5m 21s
-
(Locked)
Deleting an entity from Azure Table storage4m 6s
-
(Locked)
Replicating Azure Table storage data globally1m 57s
-
(Locked)
-