Bagikan melalui


DatabaseGeneratedAttributeConvention Kelas

Definisi

Konvensi yang mengonfigurasi properti seolah-olah OnAddIdentity ditentukan, OnAddOrUpdate jika Computed ditentukan atau Never jika None ditentukan menggunakan DatabaseGeneratedAttribute.

public class DatabaseGeneratedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute>
type DatabaseGeneratedAttributeConvention = class
    inherit PropertyAttributeConventionBase<DatabaseGeneratedAttribute>
Public Class DatabaseGeneratedAttributeConvention
Inherits PropertyAttributeConventionBase(Of DatabaseGeneratedAttribute)
Warisan
DatabaseGeneratedAttributeConvention

Keterangan

Lihat Konvensi pembuatan model untuk informasi dan contoh selengkapnya.

Konstruktor

DatabaseGeneratedAttributeConvention(ProviderConventionSetBuilderDependencies)

Membuat instans baru .DatabaseGeneratedAttributeConvention

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 dukungan untuk properti kompleks diubah.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)
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, DatabaseGeneratedAttribute, MemberInfo, IConventionContext)

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

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Dipanggil setelah properti ditambahkan ke jenis entitas.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)
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 dukungan untuk properti diubah.

(Diperoleh dari PropertyAttributeConventionBase<TAttribute>)

Berlaku untuk