简体   繁体   English

使用Azure Storage Explorer查询将实体数据更新到Azure存储表

[英]Updating entity data to Azure storage table with Azure Storage Explorer Query

can you help me please? 你能帮我吗? I want to update all entities with a query. 我想用查询更新所有实体。

If you're looking for UPDATE Table Where SomeProperty = SomeValue kind of update operation which are available in a relational database, unfortunately it is not possible to do so with Azure Tables. 如果要查找关系数据库中可用的UPDATE Table Where SomeProperty = SomeValue类型的更新操作,则不幸的是,使用Azure Tables不可能做到这一点。 Simply put, you can't issue an update query against a table in Azure Tables to update entities in that table. 简而言之,您无法针对Azure表中的表发出更新查询来更新该表中的实体。

What you need to do is first fetch the entities and once the entities are fetched, you update those entities on the client side (ie in the application where you fetched the entities) and then perform update operation on these entities. 您需要做的是首先获取实体,并在获取实体后,在客户端(即在获取实体的应用程序中)更新这些实体,然后对这些实体执行更新操作。

You could possibly do an Entity Group Transaction for the entities that you need to update to avoid multiple network calls (each entity update operation is a separate network call) and get transaction support. 您可以为需要更新的实体执行Entity Group Transaction ,以避免多个网络调用(每个实体更新操作是一个单独的网络调用)并获得事务支持。 However there're some requirements for performing an Entity Group Transaction which can be found on the page I linked. 但是,执行Entity Group Transaction有一些要求,可以在我链接的页面上找到这些要求。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM