MaxLengthAttributeConvention Clase
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Convención que configura la longitud máxima según el MaxLengthAttribute objeto aplicado en la propiedad .
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type MaxLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<MaxLengthAttribute>
type MaxLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<MaxLengthAttribute>
interface IComplexPropertyAddedConvention
interface IConvention
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Implements IComplexPropertyAddedConvention
- Herencia
- Implementaciones
Consulte Convenciones de creación de modelos para obtener más información y ejemplos.
Max |
Crea una nueva instancia de MaxLengthAttributeConvention. |
Dependencies |
Dependencias de este servicio. (Heredado de PropertyAttributeConventionBase<TAttribute>) |
Producto | Versiones |
---|---|
Entity Framework Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0 |
Comentarios de Entity Framework
Entity Framework es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: