Using entity group transactions
The Azure Table service supports entity group transactions in which a group of storage operations on entities with the same PartitionKey
property are handled automatically. That is, if any operation in the group fails, then all the operations are rolled back. Unlike transactions in a traditional SQL database, entity group transactions cannot span tables or even partitions.
A single entity group transaction is limited to no more than 100 entities and a total size of 4 MB. An individual entity can be used only once in an entity group transaction. Any combination of the create, update, and delete operations can be contained in an entity group transaction. Alternatively, it can contain only query operations. However, an entity group transaction might not combine queries with the create, update, and delete operations.
Handling batch operations differs much between Method1 and Method2. With WCF Data Services, we control the save operation with the SaveChanges()
method...