Aracılığıyla paylaş


IMutableEntityType.RemoveForeignKey Yöntem

Tanım

Aşırı Yüklemeler

RemoveForeignKey(IMutableForeignKey)

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<IProperty>, IKey, IEntityType)

Bu varlıktan ilişki kaldırır.

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IMutableKey, IMutableEntityType)

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

RemoveForeignKey(IMutableForeignKey)

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

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.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

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

Şunlara uygulanır

RemoveForeignKey(IReadOnlyList<IProperty>, IKey, IEntityType)

Bu varlıktan ilişki 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şvuruda bulunan birincil veya alternatif anahtar.

principalEntityType
IEntityType

İlişkinin hedeflediğini varlık türü. Bu, ilişki devralma hiyerarşisindeki 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

RemoveForeignKey(IReadOnlyList<IReadOnlyProperty>, IMutableKey, IMutableEntityType)

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

principalEntityType
IMutableEntityType

İlişkinin hedeflediğini varlık türü. Bu, ilişki devralma hiyerarşisindeki 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 veya null dizin bulunamadı.

Şunlara uygulanır