IMutableEntityType.RemoveForeignKey Yöntem

Tanım

Aşırı Yüklemeler

RemoveForeignKey(IMutableForeignKey)

Yabancı anahtarı bu varlık türünden kaldırır.

RemoveForeignKey(IReadOnlyForeignKey)

Yabancı anahtarı bu varlık türünden kaldırır.

RemoveForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)

Bu varlıktan bir ilişkiyi kaldırır.

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IMutableKey, IMutableEntityType)

Yabancı anahtarı bu varlık türünden kaldırır.

RemoveForeignKey(IMutableForeignKey)

Yabancı anahtarı bu varlık türünden kaldırır.

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

Parametreler

foreignKey
IMutableForeignKey

Kaldırılacak yabancı anahtar.

Döndürülenler

IMutableForeignKey

Kaldırılan yabancı anahtar.

Şunlara uygulanır

RemoveForeignKey(IReadOnlyForeignKey)

Yabancı anahtarı bu varlık türünden kaldırır.

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

Parametreler

foreignKey
IReadOnlyForeignKey

Kaldırılacak yabancı anahtar.

Döndürülenler

IMutableForeignKey

Kaldırılan yabancı anahtar veya null Dizin bulunmazsa.

Şunlara uygulanır

RemoveForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)

Bu varlıktan bir ilişkiyi kaldırır.

public Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey RemoveForeignKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IEntityType principalEntityType);
abstract member RemoveForeignKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
Public Function RemoveForeignKey (properties As IReadOnlyList(Of IProperty), principalKey As IKey, principalEntityType As IEntityType) As IMutableForeignKey

Parametreler

properties
IReadOnlyList<IProperty>

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

principalKey
IKey

Başvurulan birincil veya alternatif anahtar.

principalEntityType
IEntityType

İlişkinin hedeflediği varlık türü. Bu, principalKey ilişki bir devralma hiyerarşisinde türetilmiş bir türü hedeflediğinde (anahtar hiyerarşinin temel türünde tanımlandığından) tanımlanmış türden farklı olabilir.

Döndürülenler

IMutableForeignKey

Kaldırılan yabancı anahtar.

Şunlara uygulanır

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IMutableKey, IMutableEntityType)

Yabancı anahtarı bu varlık türünden kaldırır.

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

Parametreler

properties
IReadOnlyList<IReadOnlyProperty>

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

principalKey
IMutableKey

Başvurulan birincil veya alternatif anahtar.

principalEntityType
IMutableEntityType

İlişkinin hedeflediği varlık türü. Bu, principalKey ilişki bir devralma hiyerarşisinde türetilmiş bir türü hedeflediğinde (anahtar hiyerarşinin temel türünde tanımlandığından) tanımlanmış türden farklı olabilir.

Döndürülenler

IMutableForeignKey

Kaldırılan yabancı anahtar veya null Dizin bulunmazsa.

Şunlara uygulanır