MaxLengthAttributeConvention Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Convention qui configure la longueur maximale en fonction de la MaxLengthAttribute valeur appliquée à la propriété .
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
- Héritage
- Implémente
Remarques
Pour plus d’informations et d’exemples, consultez Conventions de génération de modèles.
Constructeurs
| MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crée une instance de MaxLengthAttributeConvention. |
Propriétés
| Dependencies |
Dépendances pour ce service. (Hérité de PropertyAttributeConventionBase<TAttribute>) |