PropertyAttributeConventionBase<TAttribute> 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.
Jenis dasar untuk konvensi yang melakukan konfigurasi berdasarkan atribut yang diterapkan ke properti.
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
Public MustInherit Class PropertyAttributeConventionBase(Of TAttribute)
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention
Jenis parameter
- TAttribute
Jenis atribut yang akan dicari.
- Warisan
-
PropertyAttributeConventionBase<TAttribute>
- Turunan
- Penerapan
Keterangan
Kelas turunan harus menerapkan IPropertyAddedConvention dan IPropertyFieldChangedConvention untuk juga menangani properti yang kompleks.
Lihat Konvensi pembuatan model untuk informasi dan contoh selengkapnya.
Konstruktor
PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies) |
Membuat instans baru .PropertyAttributeConventionBase<TAttribute> |
Properti
Dependencies |
Dependensi untuk layanan ini. |
Metode
Berlaku untuk
Entity Framework