IConventionSkipNavigationBuilder.CanSetForeignKey(IConventionForeignKey, Boolean) Yöntem

Tanım

Belirtilen yapılandırma kaynağından bu ForeignKey gezinti için ayarlanıp ayarlanamayrı belirten bir değer döndürür.

public bool CanSetForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool fromDataAnnotation = false);
public bool CanSetForeignKey (Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey? foreignKey, bool fromDataAnnotation = false);
abstract member CanSetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * bool -> bool
Public Function CanSetForeignKey (foreignKey As IConventionForeignKey, Optional fromDataAnnotation As Boolean = false) As Boolean

Parametreler

foreignKey
IConventionForeignKey

Yabancı anahtar. Geçirme null sonucunda ilişkili yabancı anahtar olmaz.

fromDataAnnotation
Boolean

Yapılandırmanın veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

Boolean

true bu ForeignKey özellik için ayarlansa.

Şunlara uygulanır