FireDAC.Comp.Client.TFDRdbmsDataSet.Transaction

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDRdbmsDataSet

Delphi

property Transaction: TFDCustomTransaction read GetTransaction write SetTransaction;

C++

__property TFDCustomTransaction* Transaction = {read=GetTransaction, write=SetTransaction};

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.

See Also