Язык

IConventionAnnotatableBuilder.RemoveAnnotation(String, Boolean) Метод

Определение

Внимание!

Use HasNoAnnotation

Удаляет заметку с заданным именем из этого объекта.

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

Параметры

name
String

Имя удаляемой заметки.

fromDataAnnotation
Boolean

Указывает, была ли указана конфигурация с помощью заметки к данным.

Возвращаемое значение

Чтобы IConventionAnnotatableBuilder продолжить настройку, если заметка была задана, null в противном случае.

Атрибуты

Применяется к