distributed transactions
Posted: Sat 08 Nov 2008 16:36
Does the MyDirect.NET provider support distributed transactions, automatically enlisting into existing transactions and thus taking part into distributed transactions with other providers (TransactionScope).
For instance:
using (TransactionScope scope = new TransactionScope())
{
// open a MySQL connection here
// update some data here
// if something fails here, exception is thrown, update db is rollbacked
scope.Complete();
// transaction is committed only now !
}
For instance:
using (TransactionScope scope = new TransactionScope())
{
// open a MySQL connection here
// update some data here
// if something fails here, exception is thrown, update db is rollbacked
scope.Complete();
// transaction is committed only now !
}