Langue

OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>.HasAnnotation Méthode

Définition

Ajoute ou met à jour une annotation sur le type d’entité appartenant. Si une annotation avec la clé spécifiée annotation existe déjà, sa valeur est mise à jour.

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

Paramètres

annotation
String

Clé de l’annotation à ajouter ou à mettre à jour.

value
Object

Valeur à stocker dans l’annotation.

Retours

OwnedNavigationBuilder<TEntity,TDependentEntity>

Même instance de générateur afin que plusieurs appels de configuration puissent être chaînés.

S’applique à