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.

Updating an entity in Azure Table storage

Updating an entity in Azure Table storage - ASP.NET Core Tutorial

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

Start my 1-month free trial

Updating an entity in Azure Table storage

- [Instructor] You learned how to add an entity to a table. But sometimes you might need to update the entity data, so for that, on this part, you'll learn how to update an entity. So let's go to Visual Studio and see this in action. In here, go to the Operations.cs file. The first thing that we are going to do is that we're going to update this name from BasicTableDataOperations to AddDataOperation. So let us remove the S. Copy this value. Scroll down in here and replace the BasicTableDataOperations in line 29. And let's see if it changes. Now, we're going to work with the update one, so I'll just copy line 20. Copy, paste it in here. Change the name in here from Add to Update. And also, copy the AddDataOperation function or method, and just paste it down here. Change the name from Add to Update. And here, scroll up. We're not going to use the AddDataOperation here, so I'll just comment out this line.…

Contents