FireDAC.Comp.Client.TFDCustomUpdateObject.DataSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSet: TFDAdaptedDataSet read FDataSet write SetDataSet;

C++

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

Properties

Type Visibility Source Unit Parent
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomUpdateObject

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