共用方式為


TimestampAttributeConvention.ProcessPropertyAdded 方法

定義

在屬性新增至實體類型之後呼叫,該實體類型具有相關聯 CLR 屬性或欄位上的屬性。

protected override void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, System.ComponentModel.DataAnnotations.TimestampAttribute attribute, System.Reflection.MemberInfo clrMember, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext context);
override this.ProcessPropertyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * System.ComponentModel.DataAnnotations.TimestampAttribute * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext -> unit
Protected Overrides Sub ProcessPropertyAdded (propertyBuilder As IConventionPropertyBuilder, attribute As TimestampAttribute, clrMember As MemberInfo, context As IConventionContext)

參數

propertyBuilder
IConventionPropertyBuilder

屬性的產生器。

attribute
TimestampAttribute

屬性。

clrMember
MemberInfo

具有 屬性的成員。

context
IConventionContext

與慣例執行相關聯的其他資訊。

適用於