FireDAC.Comp.Client.TFDMemTable.MasterSource
[–] Properties | |
---|---|
Type: property | |
Visibility: published | |
Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
Unit: FireDAC.Comp.Client | |
Parent: TFDMemTable |
Delphi
property MasterSource;
C++
__property MasterSource;
Description
Gets/sets a master data source, used to establish a master-detail relationship with this dataset.
FireDAC.Comp.Client.TFDMemTable.MasterSource inherits from FireDAC.Comp.DataSet.TFDDataSet.MasterSource. All content below this line refers to FireDAC.Comp.DataSet.TFDDataSet.MasterSource.
Gets/sets a master data source, used to establish a master-detail relationship with this dataset.
Use MasterSource to specify the data source linked to a dataset, which will be used as a master dataset in the master-detail relationship with the specified datasets.
Additionally, the application must specify the MasterFields property value. See the MasterFields property description for additional information.
Example
FDMemTable1.IndexFieldNames := 'CustomerID';
FDMemTable1.MasterSource := CustomersDS;
FDMemTable1.MasterFields := 'ID';