I am trying to read from Azure Table Storage using a C# function, and am following the guidelines listed in this answer (How to get all rows in Azure table Storage in C#?). However, at the last line of my code, I get the following error:
CloudTable does not contain a definition for ExecuteQuery
Below is my code:
var creds = new StorageCredentials(accountName, accountKey);
var account = new CloudStorageAccount(creds, useHttps: true);
// Retrieve the role assignments table
var client = account.CreateCloudTableClient();
var table = client.GetTableReference("RoleAssignmentTable");
var entities = table.ExecuteQuery(new TableQuery<RoleAssignment>()).ToList();
I am using Azure Functions v2.0
and .NET Core SDK 3.1.302