MaxLengthAttributeConvention Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Uma convenção que configura o comprimento máximo com base no MaxLengthAttribute aplicado na propriedade.
[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)
- Herança
- Atributos
- Implementações
Comentários
Consulte as convenções de criação de modelos para obter mais informações e exemplos.
Construtores
| Nome | Descrição |
|---|---|
| MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Cria uma nova instância de MaxLengthAttributeConvention. |
Propriedades
| Nome | Descrição |
|---|---|
| Dependencies |
Dependências para esse serviço. (Herdado de PropertyAttributeConventionBase<TAttribute>) |