TDADatasetRelationship

Overview

The TDADatasetRelationship class represents individual Foreign-Key or Master/Detail relationships between data tables defined in a schema.

You will usually not create instances of this class directly, but define relationships in Schema Modeler or access them through the TDASchema.

Location


 

Assign  override

Copies data from a given source.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

Description

Provides a human-readable description of the relationship. This property will not be used by the Data Abstract library, but can be filled with description text for documentation purposes when defining the relationship in Schema Modeler.

property Description: string read write

DetailDatasetName

Specifies a name for the detail dataset when establishing a relationship.

property DetailDatasetName: string read write

DetailFields

Names one or more fields in a detail table to link with corresponding fields in detail dataset in order to establish a master-detail relationship.

property DetailFields: string read write

GetDisplayName  protected override

Returns the name of the dataset relationship as it appears in the collection editor.

function GetDisplayName: string

MasterDatasetName

Specifies a name for the master dataset when establishing a relationship.

property MasterDatasetName: string read write

MasterFields

Names one or more fields in a master table to link with corresponding fields in master dataset in order to establish a master-detail relationship.

property MasterFields: string read write

Name

Relationship name.

property Name: string read write

RelationshipType

Relationship type. (default value is rtForeignKey )

property RelationshipType: TDARelationshipType read write

 

Description

Provides a human-readable description of the relationship. This property will not be used by the Data Abstract library, but can be filled with description text for documentation purposes when defining the relationship in Schema Modeler.

property Description: string read write

DetailDatasetName

Specifies a name for the detail dataset when establishing a relationship.

property DetailDatasetName: string read write

DetailFields

Names one or more fields in a detail table to link with corresponding fields in detail dataset in order to establish a master-detail relationship.

property DetailFields: string read write

MasterDatasetName

Specifies a name for the master dataset when establishing a relationship.

property MasterDatasetName: string read write

MasterFields

Names one or more fields in a master table to link with corresponding fields in master dataset in order to establish a master-detail relationship.

property MasterFields: string read write

Name

Relationship name.

property Name: string read write

RelationshipType

Relationship type. (default value is rtForeignKey )

property RelationshipType: TDARelationshipType read write

 

Assign  override

Copies data from a given source.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

GetDisplayName  protected override

Returns the name of the dataset relationship as it appears in the collection editor.

function GetDisplayName: string