API:FireDAC.Comp.Client.TFDCommand.Transaction
| [–] Properties | |
|---|---|
| Type: property | |
| Visibility: published | |
| Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
| Unit: FireDAC.Comp.Client | |
| Parent: TFDCommand | |
Delphi
property Transaction;
C++
__property Transaction;
Description
Specifies a transaction object.
FireDAC.Comp.Client.TFDCommand.Transaction inherits from FireDAC.Comp.Client.TFDCustomCommand.Transaction. All content below this line refers to FireDAC.Comp.Client.TFDCustomCommand.Transaction.
Specifies a transaction object.
The value of the Transaction property points to a transaction object. The SQL command is prepared and executed in the context of this transaction.
The value of the Transaction property must be specified before calling Prepare. If a value is not specified, then the command uses the default transaction object, specified at TFDCustomConnection.Transaction, or the transaction object for internal connection.
Note: For the moment only InterBase / Firebird drivers support the assignment of transaction to the command.