Aracılığıyla paylaş


OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasAnnotation Yöntem

Tanım

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

OwnedNavigationBuilder<TEntity,TDependentEntity>

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

Şunlara uygulanır