azureazure-table-storageazure-tablequery

How to do a transaction with Azure.Data.Tables.TableClient?


I can use this TableClient SDK (for Azure Tables) to create, update, retrieve, delete....etc. But I'm not sure how to do updates (multiple records) in a transaction.

I dont see any documentation of this anywhere (other than the mere mention of doing transactions as a possible design pattern when working with Azure Tables).

How to do this?

Reference to the document: https://www.nuget.org/packages/Azure.Data.Tables/


Solution

  • Found the answer on my own.

    Use the TableTransactionActions. Then call tableclient.SubmitTransaction(actionsList)