我正在按照本指南使用 Azure 表:https : //docs.microsoft.com/en-us/dotnet/api/overview/azure/data.tables-readme-pre 使用 Azure.Data.Tables NuGet 包.
我可以成功保存一行并在 Azure 门户的存储资源管理器中查看它,但是在尝试进行简单查询时,我回来了:
Unhandled exception. Azure.RequestFailedException: Service request failed.
Status: 501 (Not Implemented)
Content:
{"odata.error":{"code":"NotImplemented","message":{"lang":"en-US","value":"The requested operation is not implemented on the specified resource.\nRequestId:0137da3a-f002-0031-19
d6-5234ab000000\nTime:2021-05-27T08:59:39.8919922Z"}}}
我的查询代码是:
var entities = _tableClient
.Query<TableEntity>(t => t.PartitionKey == PartitionKey)
.ToList();