简体   繁体   English

删除Azure表存储中的实体

[英]Deleting entities in Azure Table Storage

I have to achieve the deletion of entities in a Azure Table without specifying partition key and row key using C#. 我必须实现删除Azure表中的实体,而无需使用C#指定分区键和行键。

My partition key would be a new GUID and row key is incremental value for a batch. 我的分区键是新的GUID,行键是批处理的增量值。

You can't delete entries without specifying PK/RK in C# from Azure table storage - unless you delete the whole table 在未从Azure表存储中指定C#中的PK / RK的情况下,无法删除条目-除非删除整个表

You can do one of the following to delete entries from a storage table: 您可以执行下列操作之一从存储表中删除条目:

  • Retrieve the entries from the storage to find out their PK/RK and then delete them 从存储中检索条目以找出其PK / RK,然后将其删除
  • Store their PK/RK's in some other store and issue delete commands using that other source for PK/RK knowledge 将其PK / RK存储在其他存储中,并使用该其他来源的PK / RK知识发出删除命令
  • know a pattern to calculate PK/RKs and use that to delete by them 知道一种计算PK / RK的模式,并使用该模式将其删除
  • delete the whole table. 删除整个表。 you can partition tables by month or week to help with this strategy 您可以按月或周对表进行分区以帮助执行此策略

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Azure 表存储中删除许多 PartitionKey 唯一实体 - Deleting many PartitionKey-unique entities from Azure Table Storage 如何在Microsoft Azure表存储中批量获取表实体 - How to get a table entities as a batches in Microsoft Azure Table Storage 超出一定数量的实体,对Azure表存储的查询不能正常工作吗? - Querying on Azure table storage doesnt work beyond a certain number of entities? 通过Powershell将实体从XML文件上传到Azure存储表 - Uploading entities to azure storage table from XML file through powershell 从Azure表存储中删除批处理时如何避免404 - How to avoid a 404 when deleting batches from Azure Table Storage Azure表存储(Partition key row key),如何在同一个partition不同rowKey对应插入多个实体? - Azure table storage (Partition key row key), how to insert multiple entities in corresponding to same parttion and different rowKey? 如何从Azure存储表中删除时间戳超过1天的所有实体? - How to delete all entities with a timestamp more than 1 day old from Azure Storage Table? 如何从 TableOperation 中的 Azure 表存储中检索实体列表而不指定 rowKey? - How to retrieve a list of entities without specifying rowKey from Azure Table Storage in the TableOperation? 如何从 azure 表存储查询中获取 1000 多个实体? - How to get more than 1000 entities from an azure table storage query? 如何使用对 Azure 表存储的单个查询检索多种类型的实体? - How do I retrieve multiple types of entities using a single query to Azure Table Storage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM