StringLengthAttributeConvention Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Özelliğine uygulanana göre StringLengthAttribute maksimum uzunluğu yapılandıran bir kural.
[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)
- Devralma
- Özellikler
Açıklamalar
Daha fazla bilgi ve örnek için bkz. Model oluşturma kuralları .
Oluşturucular
| Veri Akışı Adı | Description |
|---|---|
| StringLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
öğesinin yeni bir örneğini StringLengthAttributeConventionoluşturur. |
Özellikler
| Veri Akışı Adı | Description |
|---|---|
| Dependencies |
Bu hizmet için bağımlılıklar. (Devralındığı yer: PropertyAttributeConventionBase<TAttribute>) |