Share via


ComplexTypeAttributeConvention Class

Definition

A convention that configures types that have the ComplexTypeAttribute.

public class ComplexTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.ComplexTypeAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type ComplexTypeAttributeConvention = class
    inherit TypeAttributeConventionBase<ComplexTypeAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class ComplexTypeAttributeConvention
Inherits TypeAttributeConventionBase(Of ComplexTypeAttribute)
Implements IComplexPropertyAddedConvention
Inheritance
ComplexTypeAttributeConvention
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

ComplexTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of ComplexTypeAttributeConvention.

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.

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, ComplexTypeAttribute, 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