DiscriminatorConvention Class
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.
A convention that configures the discriminator value for entity types in a hierarchy as the entity type name.
public class DiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
public class DiscriminatorConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IDiscriminatorPropertySetConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
type DiscriminatorConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IEntityTypeRemovedConvention
type DiscriminatorConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IEntityTypeRemovedConvention
interface IDiscriminatorPropertySetConvention
Public Class DiscriminatorConvention
Implements IEntityTypeBaseTypeChangedConvention, IEntityTypeRemovedConvention
Public Class DiscriminatorConvention
Implements IDiscriminatorPropertySetConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeRemovedConvention
- Inheritance
-
DiscriminatorConvention
- Derived
- Implements
See Model building conventions for more information and examples.
Discriminator |
Creates a new instance of DiscriminatorConvention. |
Dependencies |
Dependencies for this service. |
Process |
Called after a discriminator property is set. |
Process |
Called after the base type of an entity type changes. |
Process |
Called after an entity type is removed from the model. |
Set |
Configures the discriminator values for the given entity types. |
Proizvod | Verzije |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: