Compartir a través de


NotMappedTypeAttributeConvention Clase

Definición

Convención que omite los tipos de entidad que tienen .NotMappedAttribute

public class NotMappedTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.NotMappedAttribute>
type NotMappedTypeAttributeConvention = class
    inherit TypeAttributeConventionBase<NotMappedAttribute>
Public Class NotMappedTypeAttributeConvention
Inherits TypeAttributeConventionBase(Of NotMappedAttribute)
Herencia
NotMappedTypeAttributeConvention

Comentarios

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

Constructores

NotMappedTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

Crea una nueva instancia de NotMappedTypeAttributeConvention.

Propiedades

Dependencies

Dependencias de este servicio.

(Heredado de TypeAttributeConventionBase<TAttribute>)

Métodos

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

(Heredado de TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

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

(Heredado de TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

(Heredado de TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, NotMappedAttribute, IConventionContext<IConventionEntityTypeBuilder>)

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

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

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

(Heredado de TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Intenta reemplazar el tipo complejo por un tipo de entidad.

(Heredado de TypeAttributeConventionBase<TAttribute>)

Se aplica a