MaxLengthAttributeConvention Clase

Definición

Convención que configura la longitud máxima según el MaxLengthAttribute objeto aplicado en la propiedad .

C#
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
C#
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
Herencia
Implementaciones

Comentarios

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

Constructores

Propiedades

Dependencies

Dependencias de este servicio.

(Heredado de PropertyAttributeConventionBase<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 PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Se llama después de cambiar el campo de respaldo de una propiedad compleja.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

Convención que configura la longitud máxima según el MaxLengthAttribute objeto aplicado en la propiedad .

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Se llama después de agregar una propiedad compleja a un tipo con un atributo en la propiedad o campo CLR asociado.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Se llama después de agregar una propiedad al tipo de entidad.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

Se llama después de agregar una propiedad al tipo de entidad con un atributo en la propiedad o campo CLR asociado.

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Se llama después de agregar una propiedad al tipo de entidad con un atributo en la propiedad o campo CLR asociado.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Se llama después de cambiar el campo de respaldo de una propiedad.

(Heredado de PropertyAttributeConventionBase<TAttribute>)

Se aplica a

Producto Versiones
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0