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