IConventionEntityType.RemoveForeignKey Yöntem

Tanım

Aşırı Yüklemeler

RemoveForeignKey(IConventionForeignKey)

Bu varlık türünden bir yabancı anahtarı kaldırır.

RemoveForeignKey(IReadOnlyForeignKey)

Bu varlık türünden bir yabancı anahtarı kaldırır.

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

Bu varlık türünden bir yabancı anahtarı kaldırır.

RemoveForeignKey(IConventionForeignKey)

Bu varlık türünden bir yabancı anahtarı kaldırır.

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

Parametreler

foreignKey
IConventionForeignKey

Kaldırılacak yabancı anahtar.

Döndürülenler

IConventionForeignKey

Kaldırılan yabancı anahtar.

Şunlara uygulanır

RemoveForeignKey(IReadOnlyForeignKey)

Bu varlık türünden bir yabancı anahtarı kaldırır.

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

Parametreler

foreignKey
IReadOnlyForeignKey

Kaldırılacak yabancı anahtar.

Döndürülenler

IConventionForeignKey

Kaldırılan yabancı anahtar null veya dizin bulunamadı.

Şunlara uygulanır

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

Bu varlık türünden bir yabancı anahtarı kaldırır.

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

Parametreler

properties
IReadOnlyList<IReadOnlyProperty>

Yabancı anahtarın tanımlandığı özellikler.

principalKey
IConventionKey

Başvurulan birincil veya alternatif anahtar.

principalEntityType
IConventionEntityType

İlişkinin hedeflene varlık türü. Bu, ilişki bir devralma hiyerarşisinde türetilmiş bir türü hedeflese (anahtar hiyerarşinin temel türünde tanımlandığı için) üzerinde tanımlanan principalKey türden farklı olabilir.

Döndürülenler

IConventionForeignKey

Kaldırılan yabancı anahtar.

Şunlara uygulanır