Aracılığıyla paylaş


IConventionEntityType.RemoveForeignKey Yöntem

Tanım

Aşırı Yüklemeler

RemoveForeignKey(IConventionForeignKey)

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

RemoveForeignKey(IReadOnlyForeignKey)

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

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

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

RemoveForeignKey(IConventionForeignKey)

Bu varlık türünden 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

Kaldırılan yabancı anahtar.

Şunlara uygulanır

RemoveForeignKey(IReadOnlyForeignKey)

Bu varlık türünden 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

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

Şunlara uygulanır

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IConventionKey, IConventionEntityType)

Bu varlık türünden 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şvuruda bulunan birincil veya alternatif anahtar.

principalEntityType
IConventionEntityType

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

Döndürülenler

Kaldırılan yabancı anahtar.

Şunlara uygulanır