EntityTypeAttributeConventionBase<TAttribute> Class

Definition

A base type for conventions that perform configuration based on an attribute specified on an entity type.

public abstract class EntityTypeAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention where TAttribute : Attribute
type EntityTypeAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
    interface IEntityTypeAddedConvention
    interface IConvention
Public MustInherit Class EntityTypeAttributeConventionBase(Of TAttribute)
Implements IEntityTypeAddedConvention

Type Parameters

TAttribute

The attribute type to look for.

Inheritance
EntityTypeAttributeConventionBase<TAttribute>
Derived
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

EntityTypeAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

Creates a new instance of EntityTypeAttributeConventionBase<TAttribute>.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model if it has an attribute.

Applies to