Sdílet prostřednictvím


AnnotatableBuilder<TMetadata,TModelBuilder>.RemoveAnnotation Metoda

Definice

Upozornění

Use HasNoAnnotation instead

Odebere všechny poznámky s daným názvem.

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)

Parametry

name
String

Název poznámky, která se má odebrat.

configurationSource
ConfigurationSource

Zdroj konfigurace poznámky, která má být nastavena.

Návraty

Stejný tvůrce, aby bylo možné zřetězených více volání.

Atributy

Platí pro