Compartir a través de


TypeAttributeConventionBase<TAttribute> Clase

Definición

Tipo base para convenciones que realizan la configuración en función de un atributo especificado en un tipo estructural.

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

Parámetros de tipo

TAttribute

Tipo de atributo que se va a buscar.

Herencia
TypeAttributeConventionBase<TAttribute>
Derivado
Implementaciones

Comentarios

Consulte Convenciones de creación de modelos para obtener más información y ejemplos.

Constructores

TypeAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

Crea una nueva instancia de TypeAttributeConventionBase<TAttribute>.

Propiedades

Dependencies

Dependencias para este servicio.

Métodos

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Se llama después de agregar una propiedad compleja a un objeto similar a un tipo.

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

Se llama después de agregar un tipo complejo al modelo si tiene un atributo .

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Se llama después de agregar un tipo de entidad al modelo.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Se llama después de agregar un tipo de entidad al modelo si tiene un atributo .

ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Intenta reemplazar el tipo complejo por un tipo de entidad.

Se aplica a