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
stringtable
TableprincipalTable
Tablecolumns
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
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
OnDeleteAction
public virtual ReferentialAction OnDeleteAction { get; set; }
Property Value
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
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
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
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()