IConventionEntityTypeBuilder.HasNoDeclaredDiscriminator(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.
Caution
Use HasNoDiscriminator
Removes the discriminator property from this entity type. This method is usually called when the entity type is no longer mapped to the same table as any other type in the hierarchy or when this entity type is no longer the root type.
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasNoDeclaredDiscriminator (bool fromDataAnnotation = false);
[System.Obsolete("Use HasNoDiscriminator")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder HasNoDeclaredDiscriminator (bool fromDataAnnotation = false);
[System.Obsolete("Use HasNoDiscriminator")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasNoDeclaredDiscriminator (bool fromDataAnnotation = false);
abstract member HasNoDeclaredDiscriminator : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
[<System.Obsolete("Use HasNoDiscriminator")>]
abstract member HasNoDeclaredDiscriminator : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
override this.HasNoDeclaredDiscriminator : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasNoDeclaredDiscriminator (Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Public Overridable Function HasNoDeclaredDiscriminator (Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder
Parameters
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the discriminator was configured,
null
otherwise.
- Attributes
Applies to
Entity Framework