API:FireDAC.Comp.Client.TFDMetaInfoQuery.Transaction

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property Transaction;

C++

__property Transaction;

Description

Gets / Sets a reference to transaction objects.

FireDAC.Comp.Client.TFDMetaInfoQuery.Transaction inherits from FireDAC.Comp.Client.TFDRdbmsDataSet.Transaction. All content below this line refers to FireDAC.Comp.Client.TFDRdbmsDataSet.Transaction.

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