StringLengthAttributeConvention Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Convenzione che configura la lunghezza massima in base all'oggetto StringLengthAttribute applicato alla proprietà .
[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)
- Ereditarietà
- Attributi
Commenti
Per altre informazioni ed esempi, vedere Convenzioni di compilazione di modelli.
Costruttori
| Nome | Descrizione |
|---|---|
| StringLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crea una nuova istanza di StringLengthAttributeConvention. |
Proprietà
| Nome | Descrizione |
|---|---|
| Dependencies |
Dipendenze per questo servizio. (Ereditato da PropertyAttributeConventionBase<TAttribute>) |