Advantage .NET Data Provider
Note This method is new in the .NET Framework version 2.0.
Enlist the AdsConnection instance in the given transaction.
AdsConnection.EnlistTransaction( System.Transactions.Transaction transaction );
This method provides the capability to explicitly enlist an AdsConnection instance in a transaction as defined by the .NET Framework System.Transactions namespace. The recommended practice is to use implicit transactions via the TransactionScope class (see Transaction Support in the Advantage .NET Data Provider for an example). The following code shows a simple example of explicitly enlisting in a transaction.
CommittableTransaction txn = new CommittableTransaction();
AdsConnection conn = new AdsConnection( @"data source=c:\data" );
conn.Open();
conn.EnlistTransaction( txn );
// perform updates
txn.Commit();
See Also