StringLengthAttributeConvention Clase
Definición
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 basada en el StringLengthAttribute aplicado en la propiedad .
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class StringLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.StringLengthAttribute>
public class StringLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.StringLengthAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type StringLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<StringLengthAttribute>
type StringLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<StringLengthAttribute>
Public Class StringLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of StringLengthAttribute)
- Herencia
- Atributos
Comentarios
Consulte Convenciones de creación de modelos para obtener más información y ejemplos.
Constructores
| Nombre | Description |
|---|---|
| StringLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crea una nueva instancia de StringLengthAttributeConvention. |
Propiedades
| Nombre | Description |
|---|---|
| Dependencies |
Dependencias de este servicio. (Heredado de PropertyAttributeConventionBase<TAttribute>) |