Class ObjectSchema.ForeignKeyColumn
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
sys.foreign_key_columns (Transact-SQL)
Applies to: √ SQL Server (all supported versions) √ Azure SQL Database √ Azure SQL Managed Instance √ Azure Synapse Analytics √ Analytics Platform System (PDW)
Contains a row for each column, or set of columns, that comprise a foreign key.
[Table(Schema = "sys", Name = "foreign_key_columns", IsView = true)]
public class ObjectSchema.ForeignKeyColumn
- Inheritance
-
ObjectSchema.ForeignKeyColumn
- Extension Methods
Properties
ConstraintColumnID
ID of the column, or set of columns, that comprise the FOREIGN KEY (1..n where n=number of columns).
[Column("constraint_column_id")]
[NotNull]
public int ConstraintColumnID { get; set; }
Property Value
ConstraintObjectID
ID of the FOREIGN KEY constraint.
[Column("constraint_object_id")]
[NotNull]
public int ConstraintObjectID { get; set; }
Property Value
ParentColumnID
ID of the parent column, which is the referencing column.
[Column("parent_column_id")]
[NotNull]
public int ParentColumnID { get; set; }
Property Value
ParentObjectID
ID of the parent of the constraint, which is the referencing object.
[Column("parent_object_id")]
[NotNull]
public int ParentObjectID { get; set; }
Property Value
ReferencedColumnID
ID of the referenced column (candidate key column).
[Column("referenced_column_id")]
[NotNull]
public int ReferencedColumnID { get; set; }
Property Value
ReferencedObjectID
ID of the referenced object, which has the candidate key.
[Column("referenced_object_id")]
[NotNull]
public int ReferencedObjectID { get; set; }