我有一个.NET Core 2.2 Web应用程序,试图与我的Azure表存储资源进行通信。目前为止,我已经完成了以下工作:
using Microsoft.WindowsAzure.Storage;
using Microsoft.Azure.CosmosDB.Table;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebApplication1.Repositories
{
public class AssetRepository
{
public AssetRepository()
{
CloudStorageAccount storageAccount = CloudStorageAccount.Parse("cstring");
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
}
}
}
然而,当我悬停在CreateCloudTableClient
上时,我看到对类型CloudStorageAccount的引用声称它在Microsoft.Azure.Storage.Common中定义,但找不到该类型。
如何在.NET Core 2.2 Web应用程序内执行基本的Table CRUD操作?