EntityDAC

TEntityConnection.StartTransaction Method

Initiates a new transaction in the associated database.

Class

TEntityConnection

Syntax

procedure StartTransaction;

Remarks

Call the StartTransaction method to begin a new transaction at the server. Before calling StartTransaction, an application should check the value of the InTransaction property. If the result is True, it means that a transaction is already in progress, a subsequent call to StartTransaction without first calling CommitTransaction or RollbackTransaction to end the current transaction raises an exception. Calling StartTransaction when connection is closed also raises an exception.

All data modifications that take place after a call to StartTransaction are held by the server until the application calls CommitTransaction to save the changes or RollbackTransaction to cancel them.

If the transaction is successfully started, the InTransaction property is set to True.

EntityDAC does not support working with multiple transactions.

See Also

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback