API:FireDAC.Comp.Client.TFDCommand.Transaction
Delphi
property Transaction: TFDCustomTransaction read FTransaction write SetTransaction;
C++
__property Transaction;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCommand |
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.