FireDAC.Phys.MongoDBDataSet.TFDMongoPipeline.MasterSource
Delphi
property MasterSource: TDataSource read GetDataSource write SetMasterSource;
C++
__property MasterSource;
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Phys.MongoDBDataSet.pas FireDAC.Phys.MongoDBDataSet.hpp |
FireDAC.Phys.MongoDBDataSet | TFDMongoPipeline |
Description
Gets/sets a master data source, used to establish a master-detail relationship with this dataset.
FireDAC.Phys.MongoDBDataSet.TFDMongoPipeline.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';