내가 가진 가정 :거래
using (TransactionScope scope = new TransactionScope())
{
if (IndexExists(index.RowKey))
DeleteIndex(index.RowKey); //deletes using TableOperation.Delete
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConnectionString);
CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
CloudTable table = tableClient.GetTableReference(Const.IndexTable);
TableOperation insertOperation = TableOperation.Insert(index);
table.Execute(insertOperation);
}
내가 원하는 것은 이것이다 : 삽입이 실패 할 경우, 취소해야 삭제할 수 있습니다. 이것은 거래를하는 올바른 방법입니까? 모든 것은 같은 파티션/테이블에서 발생합니다. 또한 트랜잭션의 다른 제한 사항은 무엇입니까, 나는 어딘가에 4Mb가 트랜잭션 내에 저장 될 수 없다는 것을 읽었습니다. 여전히 정확합니까?