CollectionOwnershipBuilder.HasForeignKeyAnnotation(String, Object) Yöntem

Tanım

Yabancı anahtarda bir ek açıklama ekler veya güncelleştirir. Zaten ' de belirtilen anahtara sahip bir ek açıklama varsa, annotation değeri güncellenir.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder HasForeignKeyAnnotation (string annotation, object value);
abstract member HasForeignKeyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder
override this.HasForeignKeyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder
Public Overridable Function HasForeignKeyAnnotation (annotation As String, value As Object) As CollectionOwnershipBuilder

Parametreler

annotation
String

Eklenecek veya güncelleştirilebilen ek açıklamanın anahtarı.

value
Object

Ek açıklamada depolanacak değer.

Döndürülenler

CollectionOwnershipBuilder

Birden çok yapılandırma çağrısının zincirlenebilir olması için aynı Oluşturucu örneği.

Şunlara uygulanır