FireDAC.Comp.Client.TFDCustomCommand.Transaction

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property Transaction: TFDCustomTransaction read FTransaction write SetTransaction;

C++

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

プロパティ

種類 可視性 ソース ユニット
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomCommand

説明

トランザクション オブジェクトを示します。


Transaction プロパティの値は、トランザクション オブジェクトを指します。SQL コマンドは、このトランザクションのコンテキストで準備され、実行されます。

Transaction プロパティの値は、Prepare を呼び出す前に指定する必要があります。値が指定されていない場合には、TFDCustomConnection.Transaction で指定されたデフォルト トランザクション オブジェクトか、内部接続のトランザクション オブジェクトが使われます。

メモ: 現在のところ、コマンドへのトランザクションの割り当てをサポートしているのは InterBase/Firebird ドライバだけです。

関連項目