Поделиться через


AnnotatableBuilder<TMetadata,TModelBuilder>.RemoveAnnotation Метод

Определение

Внимание!

Use HasNoAnnotation instead

Удаляет все заметки с заданным именем.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<TMetadata,TModelBuilder> RemoveAnnotation (string name, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<TMetadata,TModelBuilder>? RemoveAnnotation (string name, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
[System.Obsolete("Use HasNoAnnotation instead")]
public virtual Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<TMetadata,TModelBuilder>? RemoveAnnotation (string name, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
abstract member RemoveAnnotation : string * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
override this.RemoveAnnotation : string * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
[<System.Obsolete("Use HasNoAnnotation instead")>]
abstract member RemoveAnnotation : string * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
override this.RemoveAnnotation : string * Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource -> Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<'Metadata, 'ModelBuilder (requires 'Metadata :> Microsoft.EntityFrameworkCore.Infrastructure.ConventionAnnotatable and 'ModelBuilder :> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder)>
Public Overridable Function RemoveAnnotation (name As String, configurationSource As ConfigurationSource) As AnnotatableBuilder(Of TMetadata, TModelBuilder)

Параметры

name
String

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

configurationSource
ConfigurationSource

Источник конфигурации задается заметки.

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

Один и тот же построитель, чтобы несколько вызовов можно было связать в цепочку.

Атрибуты

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