MutableEntityTypeExtensions.RemoveForeignKey(IMutableEntityType, IReadOnlyList<IMutableProperty>, IMutableKey, IMutableEntityType) Yöntem

Tanım

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey RemoveForeignKey (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties, Microsoft.EntityFrameworkCore.Metadata.IMutableKey principalKey, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType principalEntityType);
static member RemoveForeignKey : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> * Microsoft.EntityFrameworkCore.Metadata.IMutableKey * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey
<Extension()>
Public Function RemoveForeignKey (entityType As IMutableEntityType, properties As IReadOnlyList(Of IMutableProperty), principalKey As IMutableKey, principalEntityType As IMutableEntityType) As IMutableForeignKey

Parametreler

entityType
IMutableEntityType

Varlık türü.

properties
IReadOnlyList<IMutableProperty>

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.

Şunlara uygulanır