StringLengthAttributeConvention 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 StringLengthAttribute aplicado na propriedade .
public class StringLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.StringLengthAttribute>
type StringLengthAttributeConvention = class
inherit PropertyAttributeConventionBase<StringLengthAttribute>
Public Class StringLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of StringLengthAttribute)
- Herança
Comentários
Consulte Convenções de criação de modelo para obter mais informações e exemplos.
Construtores
| StringLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Cria uma nova instância de StringLengthAttributeConvention. |
Propriedades
| Dependencies |
Dependências para esse serviço. (Herdado de PropertyAttributeConventionBase<TAttribute>) |