Partager via


IConventionAnnotatableBuilder.RemoveAnnotation(String, Boolean) Méthode

Définition

Attention

Use HasNoAnnotation

Supprime l’annotation portant le nom donné de cet objet.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder RemoveAnnotation (string name, bool fromDataAnnotation = false);
[System.Obsolete("Use HasNoAnnotation")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder RemoveAnnotation (string name, bool fromDataAnnotation = false);
[System.Obsolete("Use HasNoAnnotation")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder? RemoveAnnotation (string name, bool fromDataAnnotation = false);
abstract member RemoveAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
[<System.Obsolete("Use HasNoAnnotation")>]
abstract member RemoveAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
override this.RemoveAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
Public Function RemoveAnnotation (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionAnnotatableBuilder
Public Overridable Function RemoveAnnotation (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionAnnotatableBuilder

Paramètres

name
String

Nom de l’annotation à supprimer.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

pour IConventionAnnotatableBuilder continuer la configuration si l’annotation a été définie, null sinon.

Attributs

S’applique à