FireDAC.Comp.Client.TFDCustomCommand.Transaction
Delphi
property Transaction: TFDCustomTransaction read FTransaction write SetTransaction;
C++
__property TFDCustomTransaction* Transaction = {read=FTransaction, write=SetTransaction};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomCommand |
Description
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.