Interface IDiscriminatorPropertySetConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an operation that should be performed when a discriminator property is set for an entity type.
public interface IDiscriminatorPropertySetConvention : IConvention
Remarks
See Model building conventions for more information and examples.
Methods
ProcessDiscriminatorPropertySet(IConventionEntityTypeBuilder, string?, IConventionContext<string?>)
Called after a discriminator property is set.
void ProcessDiscriminatorPropertySet(IConventionEntityTypeBuilder entityTypeBuilder, string? name, IConventionContext<string?> context)
Parameters
entityTypeBuilder
IConventionEntityTypeBuilderThe builder for the entity type.
name
stringThe name of the discriminator property.
context
IConventionContext<string>Additional information associated with convention execution.