StringLengthAttributeConvention Třída
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Konvence, která konfiguruje maximální délku na základě použité vlastnosti StringLengthAttribute .
[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)
- Dědičnost
- Atributy
Poznámky
Další informace a příklady najdete v tématu Konvence vytváření modelů .
Konstruktory
| Název | Description |
|---|---|
| StringLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Vytvoří novou instanci .StringLengthAttributeConvention |
Vlastnosti
| Název | Description |
|---|---|
| Dependencies |
Závislosti pro tuto službu. (Zděděno od PropertyAttributeConventionBase<TAttribute>) |