StringLengthAttributeConvention Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Konwencja, która konfiguruje maksymalną długość na podstawie zastosowanej StringLengthAttribute właściwości.
[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)
- Dziedziczenie
- Atrybuty
Uwagi
Aby uzyskać więcej informacji i przykładów, zobacz Konwencje tworzenia modeli .
Konstruktory
| Nazwisko | Opis |
|---|---|
| StringLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Tworzy nowe wystąpienie klasy StringLengthAttributeConvention. |
Właściwości
| Nazwisko | Opis |
|---|---|
| Dependencies |
Zależności dla tej usługi. (Odziedziczone po PropertyAttributeConventionBase<TAttribute>) |