Delete Azure Mazes in One Transaction

I have five Azure incidents that correspond to five azure SQL database records. Entity Framework allows me to delete five database records in one transaction, for example. see here Several SaveChanges calls in an entity structure . I want to remove five drops in one transaction. Thus, neither one nor all of the blocks are deleted. How can I do it? I intend to roll back the transaction with the database if any of the blob deletions failed, but so far I can only delete byte by bytes one by one.

+4
source share
1 answer

Each REST call to store blocks is independent; There are no transactions between multiple calls.

The only possible way to delete multiple blocks in one call (transaction) would be if all the drops were in the same container. Then you can perform the deletion in the container in one call, which will also delete all drops inside this container.

See here for API documentation and here for the .net library call.

+4
source

Source: https://habr.com/ru/post/1627895/


All Articles