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 l’application MaxLengthAttribute sur la propriété.
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type MaxLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<MaxLengthAttribute>
interface IComplexPropertyAddedConvention
interface IConvention
type MaxLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<MaxLengthAttribute>
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Implements IComplexPropertyAddedConvention
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
- Héritage
- Attributs
- Implémente
Remarques
Pour plus d’informations et d’exemples, consultez les conventions de génération de modèles.
Constructeurs
| Nom | Description |
|---|---|
| MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crée une instance de MaxLengthAttributeConvention. |
Propriétés
| Nom | Description |
|---|---|
| Dependencies |
Dépendances pour ce service. (Hérité de PropertyAttributeConventionBase<TAttribute>) |