IConventionAnnotatableBuilder.RemoveAnnotation(String, Boolean) Method

Definition

Caution

Use HasNoAnnotation

Removes the annotation with the given name from this object.

C#
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder RemoveAnnotation (string name, bool fromDataAnnotation = false);
C#
[System.Obsolete("Use HasNoAnnotation")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder RemoveAnnotation (string name, bool fromDataAnnotation = false);
C#
[System.Obsolete("Use HasNoAnnotation")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder? RemoveAnnotation (string name, bool fromDataAnnotation = false);

Parameters

name
String

The name of the annotation to remove.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

An IConventionAnnotatableBuilder to continue configuration if the annotation was set, null otherwise.

Attributes

Applies to

Product Versions (Obsolete)
Entity Framework Core 3.0, 3.1 (5.0, 6.0)