PropertyBuilder<TProperty>.HasAnnotation(String, Object) Méthode

Définition

Ajoute ou met à jour une annotation sur la propriété . Si une annotation avec la clé spécifiée dans annotation existe déjà, sa valeur est mise à jour.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasAnnotation (string annotation, object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasAnnotation (string annotation, object? value);
override this.HasAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
Public Overridable Function HasAnnotation (annotation As String, value As Object) As PropertyBuilder(Of TProperty)

Paramètres

annotation
String

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

value
Object

Valeur à stocker dans l’annotation.

Retours

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

S’applique à