Data.SqlExpr.TSQLTable.MasterSource
Delphi
property MasterSource: TDataSource read GetDataSource write SetDataSource;
C++
__property Data::Db::TDataSource* MasterSource = {read=GetDataSource, write=SetDataSource};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Data.SqlExpr.pas Data.SqlExpr.hpp |
Data.SqlExpr | TSQLTable |
Description
Identifies the master dataset to use when linking this table as the detail of a master/detail relationship.
Use MasterSource to indicate the dataset that serves as a master table when establishing a master/detail relationship. Specify a TDataSource component whose DataSet property identifies the desired master dataset.
A master/detail relationship is established when you set the MasterSource property to identify a master dataset, the MasterFields property to identify the fields in that master dataset whose values must be matched by linking fields in this (detail) SQL table, and the IndexName or IndexFieldNames property to identify the linking fields in this SQL table.
MasterSource is the same as the DataSource property, except that it is published.