IConventionEntityTypeBuilder.HasNoDiscriminator(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 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 HasNoDiscriminator (bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasNoDiscriminator (bool fromDataAnnotation = false);
abstract member HasNoDiscriminator : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasNoDiscriminator (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.
Applies to
Entity Framework