API:FireDAC.Comp.Client.TFDMemTable.MasterSource
Delphi
property MasterSource: TDataSource read GetDataSource write SetMasterSource;
C++
__property MasterSource;
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDMemTable |
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';