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, IReadOnlyAnnotatable
- Inheritance
-
ForeignKeyConstraint
- Implements
-
IAnnotatableIReadOnlyAnnotatable
Constructors
ForeignKeyConstraint(string, Table, Table, IReadOnlyList<Column>, UniqueConstraint, 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, UniqueConstraint principalUniqueConstraint, ReferentialAction onDeleteAction)
Parameters
name
stringtable
TableprincipalTable
Tablecolumns
IReadOnlyList<Column>principalUniqueConstraint
UniqueConstraintonDeleteAction
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
IsReadOnly
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 bool IsReadOnly { 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
PrincipalUniqueConstraint
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 UniqueConstraint PrincipalUniqueConstraint { 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
GetRowForeignKeyValueFactory()
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 IRowForeignKeyValueFactory GetRowForeignKeyValueFactory()
Returns
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()