MaxLengthAttributeConvention 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 MaxLengthAttribute właściwości.
[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)
- Dziedziczenie
- Atrybuty
- Implementuje
Uwagi
Aby uzyskać więcej informacji i przykładów, zobacz Konwencje tworzenia modeli .
Konstruktory
| Nazwisko | Opis |
|---|---|
| MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Tworzy nowe wystąpienie klasy MaxLengthAttributeConvention. |
Właściwości
| Nazwisko | Opis |
|---|---|
| Dependencies |
Zależności dla tej usługi. (Odziedziczone po PropertyAttributeConventionBase<TAttribute>) |