TypeAttributeConventionBase<TAttribute> Class

Definition

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

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

Type Parameters

TAttribute

The attribute type to look for.

Inheritance
TypeAttributeConventionBase<TAttribute>
Derived
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

TypeAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

Creates a new instance of TypeAttributeConventionBase<TAttribute>.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Called after a complex property is added to a type-like object.

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

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

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.

ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Tries to replace the complex type with an entity type.

Applies to