Bagikan melalui


PropertyAttributeConventionBase<TAttribute> Kelas

Definisi

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

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Dipanggil setelah properti kompleks ditambahkan ke objek seperti jenis.

ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Dipanggil setelah bidang dukungan untuk properti kompleks diubah.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Dipanggil setelah properti kompleks ditambahkan ke jenis dengan atribut pada properti atau bidang CLR terkait.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Dipanggil setelah properti ditambahkan ke jenis entitas.

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Dipanggil setelah properti ditambahkan ke jenis entitas dengan atribut pada properti atau bidang CLR terkait.

ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Dipanggil setelah bidang dukungan untuk properti diubah.

Berlaku untuk