FireDAC.Comp.Client.TFDCustomUpdateObject.DataSet

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: TFDCustomUpdateObject

Delphi

property DataSet: TFDAdaptedDataSet read FDataSet write SetDataSet;

C++

__property TFDAdaptedDataSet* DataSet = {read=FDataSet, write=SetDataSet};

Description

Identifies the dataset on which the change log update object will operate.

TFDCustomUpdateObject uses the DataSet property for two purposes:

  • It fetches the original and updated field values from this dataset when performing parameter substitution.
  • If this dataset is a TFDRdbmsDataSet descendant, it uses its Connection and ConnectionName properties to identify the connection that it uses when performing its update queries.

If you are using a single update object, the DataSet property is set automatically when you set the source dataset's UpdateObject property. If you are using multiple update objects, you must set the DataSet property at run time in an OnUpdateRecord event handler.

See Also