CollectionOwnershipBuilder<TEntity,TDependentEntity>.HasEntityTypeAnnotation(String, Object) Yöntem

Tanım

Sahip olan varlık türüne 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<TEntity,TDependentEntity> HasEntityTypeAnnotation (string annotation, object value);
override this.HasEntityTypeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.CollectionOwnershipBuilder<'Entity, 'DependentEntity (requires 'Entity : null and 'DependentEntity : null)>
Public Overridable Function HasEntityTypeAnnotation (annotation As String, value As Object) As CollectionOwnershipBuilder(Of TEntity, TDependentEntity)

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<TEntity,TDependentEntity>

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

Şunlara uygulanır