IConventionSkipNavigationBuilder.CanSetForeignKey Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Verilen yapılandırma kaynağından bu gezinti için ayarlanıp ForeignKey ayarlanamayacağını 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. null
Geçiş, ilişkili yabancı anahtar olmamasıyla sonuçlanır.
- fromDataAnnotation
- Boolean
Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.
Döndürülenler
true
bu özellik için ayarlanabiliyorsa ForeignKey .
Şunlara uygulanır
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.
Entity Framework