Share via


EntityTypeConfigurationAttributeConvention Class

Definition

A convention that applies the entity type configuration specified in EntityTypeConfigurationAttribute.

public class EntityTypeConfigurationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.EntityTypeConfigurationAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type EntityTypeConfigurationAttributeConvention = class
    inherit TypeAttributeConventionBase<EntityTypeConfigurationAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class EntityTypeConfigurationAttributeConvention
Inherits TypeAttributeConventionBase(Of EntityTypeConfigurationAttribute)
Implements IComplexPropertyAddedConvention
Inheritance
EntityTypeConfigurationAttributeConvention
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

EntityTypeConfigurationAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of EntityTypeConfigurationAttributeConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from TypeAttributeConventionBase<TAttribute>)

Methods

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

(Inherited from TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, EntityTypeConfigurationAttribute, IConventionContext)

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

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

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

(Inherited from TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, EntityTypeConfigurationAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity 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.

(Inherited from TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

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

(Inherited from TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Tries to replace the complex type with an entity type.

(Inherited from TypeAttributeConventionBase<TAttribute>)

Applies to