IConventionModelBuilder.HasNoAnnotation(String, Boolean) 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 the annotation with the given name from this object.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder? HasNoAnnotation (string name, bool fromDataAnnotation = false);
abstract member HasNoAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder
Public Function HasNoAnnotation (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionModelBuilder
Parameters
- name
- String
The name of the annotation to remove.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
An IConventionModelBuilder to continue configuration if the annotation was set, null
otherwise.