jeudi 4 mai 2017

How to perform multiple operations in under single transaction

I have a scenario where it requires to add a record in to table, then - creating a resource on the cloud if record is added, then update the record in table with the resource identifier if resource is created on cloud. So, they are 3 operations and I want to revert all of it when any of them doesn't succeed.

We have TransactionScope for Multiple Db Operations in one go but I'm wondering how to achieve this? Appreciate your help!

Aucun commentaire:

Enregistrer un commentaire