Sdílet prostřednictvím


IConventionEntityType.RemoveForeignKey Metoda

Definice

Přetížení

RemoveForeignKey(IConventionForeignKey)

Odebere cizí klíč z tohoto typu entity.

RemoveForeignKey(IReadOnlyForeignKey)

Odebere cizí klíč z tohoto typu entity.

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

Odebere cizí klíč z tohoto typu entity.

RemoveForeignKey(IConventionForeignKey)

Odebere cizí klíč z tohoto typu entity.

public void RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey);
public Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey);
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey -> unit
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey
Public Sub RemoveForeignKey (foreignKey As IConventionForeignKey)
Public Function RemoveForeignKey (foreignKey As IConventionForeignKey) As IConventionForeignKey

Parametry

foreignKey
IConventionForeignKey

Cizí klíč, který se má odebrat.

Návraty

Odebraný cizí klíč

Platí pro

RemoveForeignKey(IReadOnlyForeignKey)

Odebere cizí klíč z tohoto typu entity.

public Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey? RemoveForeignKey (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey foreignKey);
abstract member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey
Public Function RemoveForeignKey (foreignKey As IReadOnlyForeignKey) As IConventionForeignKey

Parametry

foreignKey
IReadOnlyForeignKey

Cizí klíč, který se má odebrat.

Návraty

Odebraný cizí klíč nebo null pokud index nebyl nalezen.

Platí pro

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

Odebere cizí klíč z tohoto typu entity.

public Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey? RemoveForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IConventionKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType principalEntityType);
abstract member RemoveForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> * Microsoft.EntityFrameworkCore.Metadata.IConventionKey * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey
Public Function RemoveForeignKey (properties As IReadOnlyList(Of IReadOnlyProperty), principalKey As IConventionKey, principalEntityType As IConventionEntityType) As IConventionForeignKey

Parametry

properties
IReadOnlyList<IReadOnlyProperty>

Vlastnosti, pro které je cizí klíč definován.

principalKey
IConventionKey

Primární nebo alternativní klíč, na který se odkazuje.

principalEntityType
IConventionEntityType

Typ entity, na který relace cílí. To se může lišit od typu definovaného v případě, kdy principalKey relace cílí na odvozený typ v hierarchii dědičnosti (protože klíč je definován na základním typu hierarchie).

Návraty

Cizí klíč, který byl odebrán.

Platí pro