Aracılığıyla paylaş


CollectionOwnershipBuilder<TEntity,TDependentEntity>.HasForeignKeyAnnotation Yöntem

Tanım

Yabancı anahtara ek açıklama ekler veya güncelleştirir. içinde annotation belirtilen anahtara sahip bir ek açıklama zaten varsa değeri güncelleştirilir.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<TEntity,TDependentEntity> HasForeignKeyAnnotation (string annotation, object value);
override this.HasForeignKeyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)>
Public Overridable Function HasForeignKeyAnnotation (annotation As String, value As Object) As CollectionOwnershipBuilder(Of TEntity, TDependentEntity)

Parametreler

annotation
String

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

value
Object

Ek açıklamaya depolanacak değer.

Döndürülenler

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

Şunlara uygulanır