MaxLengthAttributeConvention Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Eine Konvention, die die maximale Länge basierend auf der MaxLengthAttribute angewendeten Eigenschaft konfiguriert.
[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)
- Vererbung
- Attribute
- Implementiert
Hinweise
Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .
Konstruktoren
| Name | Beschreibung |
|---|---|
| MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Erstellt eine neue Instanz von MaxLengthAttributeConvention. |
Eigenschaften
| Name | Beschreibung |
|---|---|
| Dependencies |
Abhängigkeiten für diesen Dienst. (Geerbt von PropertyAttributeConventionBase<TAttribute>) |