FireDAC.Comp.Client.TFDRdbmsDataSet.Transaction
Delphi
property Transaction: TFDCustomTransaction read GetTransaction write SetTransaction;
C++
__property TFDCustomTransaction* Transaction = {read=GetTransaction, write=SetTransaction};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDRdbmsDataSet |
Description
Gets / Sets a reference to transaction objects.
The Transaction property allows to associate a dataset with an explicit transaction object. If it is not specified, the dataset will be associated with the default connection transaction.
The specified transaction object will be used only for Prepare, Open, ExecSQL, ExecProc and Execute methods. For commands generated to apply changes to a database, FireDAC will use UpdateTransaction if it is specified; otherwise, it will use Transaction.
Currently, explicit transaction object assignment is supported only for InterBase and Firebird.