IAnnotationCodeGenerator.GenerateDataAnnotationAttributes Metode
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.
Overload
GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>) |
Untuk anotasi tertentu yang memiliki atribut anotasi data yang sesuai, mengembalikan fragmen kode atribut tersebut dan menghapus anotasi. |
GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>) |
Untuk anotasi tertentu yang memiliki atribut anotasi data yang sesuai, mengembalikan fragmen kode atribut tersebut dan menghapus anotasi. |
GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>) |
Untuk anotasi tertentu yang memiliki atribut anotasi data yang sesuai, mengembalikan fragmen kode atribut tersebut dan menghapus anotasi. |
GenerateDataAnnotationAttributes(IAnnotatable, IDictionary<String,IAnnotation>)
Untuk anotasi tertentu yang memiliki atribut anotasi data yang sesuai, mengembalikan fragmen kode atribut tersebut dan menghapus anotasi.
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (annotatable As IAnnotatable, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)
Parameter
- annotatable
- IAnnotatable
Anotasi tempat anotasi diterapkan.
- annotations
- IDictionary<String,IAnnotation>
Set anotasi untuk menghasilkan panggilan API yang fasih.
Mengembalikan
Berlaku untuk
GenerateDataAnnotationAttributes(IEntityType, IDictionary<String,IAnnotation>)
Untuk anotasi tertentu yang memiliki atribut anotasi data yang sesuai, mengembalikan fragmen kode atribut tersebut dan menghapus anotasi.
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (entityType As IEntityType, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)
Parameter
- entityType
- IEntityType
Jenis entitas tempat anotasi diterapkan.
- annotations
- IDictionary<String,IAnnotation>
Set anotasi untuk menghasilkan panggilan API yang fasih.
Mengembalikan
Berlaku untuk
GenerateDataAnnotationAttributes(IProperty, IDictionary<String,IAnnotation>)
Untuk anotasi tertentu yang memiliki atribut anotasi data yang sesuai, mengembalikan fragmen kode atribut tersebut dan menghapus anotasi.
public virtual System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment> GenerateDataAnnotationAttributes (Microsoft.EntityFrameworkCore.Metadata.IProperty property, System.Collections.Generic.IDictionary<string,Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations);
abstract member GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
override this.GenerateDataAnnotationAttributes : Microsoft.EntityFrameworkCore.Metadata.IProperty * System.Collections.Generic.IDictionary<string, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Design.AttributeCodeFragment>
Public Overridable Function GenerateDataAnnotationAttributes (property As IProperty, annotations As IDictionary(Of String, IAnnotation)) As IReadOnlyList(Of AttributeCodeFragment)
Parameter
- property
- IProperty
Properti tempat anotasi diterapkan.
- annotations
- IDictionary<String,IAnnotation>
Set anotasi untuk menghasilkan panggilan API yang fasih.
Mengembalikan
Berlaku untuk
Entity Framework
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk