StringLengthAttributeConvention Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Konvensi yang mengonfigurasi panjang maksimum berdasarkan yang StringLengthAttribute diterapkan pada properti .
[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)
- Warisan
- Atribut
Keterangan
Lihat Konvensi pembuatan model untuk informasi dan contoh selengkapnya.
Konstruktor
| Nama | Deskripsi |
|---|---|
| StringLengthAttributeConvention(ProviderConventionSetBuilderDependencies) |
Membuat instans baru StringLengthAttributeConvention. |
Properti
| Nama | Deskripsi |
|---|---|
| Dependencies |
Dependensi untuk layanan ini. (Diperoleh dari PropertyAttributeConventionBase<TAttribute>) |