Bagikan melalui


RequiredPropertyAttributeConvention Kelas

Definisi

Konvensi yang mengonfigurasi properti sebagaimana diperlukan jika telah RequiredAttribute diterapkan.

public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
type RequiredPropertyAttributeConvention = class
    inherit PropertyAttributeConventionBase<RequiredAttribute>
type RequiredPropertyAttributeConvention = class
    inherit PropertyAttributeConventionBase<RequiredAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
    interface IComplexPropertyFieldChangedConvention
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
Warisan
RequiredPropertyAttributeConvention
Penerapan

Keterangan

Lihat Konvensi pembuatan model untuk informasi dan contoh selengkapnya.

Konstruktor

RequiredPropertyAttributeConvention(ProviderConventionSetBuilderDependencies)

Membuat instans baru .RequiredPropertyAttributeConvention

Properti

Dependencies

Dependensi untuk layanan ini.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)

Metode

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Dipanggil setelah properti kompleks ditambahkan ke objek seperti jenis.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Dipanggil setelah bidang backing untuk properti kompleks diubah.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, RequiredAttribute, MemberInfo, IConventionContext)

Konvensi yang mengonfigurasi properti sebagaimana diperlukan jika telah RequiredAttribute diterapkan.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

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

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Dipanggil setelah properti ditambahkan ke jenis entitas.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, RequiredAttribute, MemberInfo, IConventionContext)

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

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

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

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Dipanggil setelah bidang backing untuk properti diubah.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)

Berlaku untuk