Table of Contents

TForeignKeyMetadata Class

Describes a foreign key constraint, specifying the source (from) columns in one table and the target (to) columns in another table.

Syntax

Unit: Aurelius.Sql.Metadata

TForeignKeyMetadata = class(TMetadataInfo);

Constructors

Name Description
Create Creates a TForeignKeyMetadata originating from the given table.

Properties

Name Description
FromColumns Gets or sets the list of columns in the source table that form the foreign key.
FromTable Gets the table that contains the foreign key columns.
Name Gets or sets the constraint name as it appears in the database.
ToColumns Gets or sets the list of columns in the referenced table that the foreign key points to.
ToTable Gets or sets the referenced (primary key) table.