Table of Contents

Class ForeignKeyConstraint

Namespace
Microsoft.EntityFrameworkCore.Metadata.Internal
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class ForeignKeyConstraint : Annotatable, IForeignKeyConstraint, IAnnotatable
Inheritance
ForeignKeyConstraint
Implements
IAnnotatable

Constructors

ForeignKeyConstraint(string, Table, Table, IReadOnlyList<Column>, IReadOnlyList<Column>, ReferentialAction)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public ForeignKeyConstraint(string name, Table table, Table principalTable, IReadOnlyList<Column> columns, IReadOnlyList<Column> principalColumns, ReferentialAction onDeleteAction)

Parameters

name string
table Table
principalTable Table
columns IReadOnlyList<Column>
principalColumns IReadOnlyList<Column>
onDeleteAction ReferentialAction

Properties

Columns

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IReadOnlyList<Column> Columns { get; }

Property Value

IReadOnlyList<Column>

MappedForeignKeys

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual SortedSet<IForeignKey> MappedForeignKeys { get; }

Property Value

SortedSet<IForeignKey>

Name

public virtual string Name { get; }

Property Value

string

OnDeleteAction

public virtual ReferentialAction OnDeleteAction { get; set; }

Property Value

ReferentialAction

PrincipalColumns

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IReadOnlyList<Column> PrincipalColumns { get; }

Property Value

IReadOnlyList<Column>

PrincipalTable

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual Table PrincipalTable { get; }

Property Value

Table

Table

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual Table Table { get; }

Property Value

Table

Methods

ToString()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override string ToString()

Returns

string