AnnotatableBuilder<TMetadata,TModelBuilder>.HasNoAnnotation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes any annotation with the given name.
public virtual Microsoft.EntityFrameworkCore.Infrastructure.AnnotatableBuilder<TMetadata,TModelBuilder>? HasNoAnnotation (string name, Microsoft.EntityFrameworkCore.Metadata.ConfigurationSource configurationSource);
abstract member HasNoAnnotation : 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.HasNoAnnotation : 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 HasNoAnnotation (name As String, configurationSource As ConfigurationSource) As AnnotatableBuilder(Of TMetadata, TModelBuilder)
Parameters
- name
- String
The name of the annotation to remove.
- configurationSource
- ConfigurationSource
The configuration source of the annotation to be set.
Returns
The same builder so that multiple calls can be chained.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework