語言

KeyAttributeConvention.ProcessPropertyAdded 方法

定義

多載

名稱 Description
ProcessPropertyAdded(IConventionComplexPropertyBuilder, KeyAttribute, MemberInfo, IConventionContext)

在將複雜屬性加入帶有 CLR 屬性或欄位屬性的型別後呼叫。

ProcessPropertyAdded(IConventionPropertyBuilder, KeyAttribute, MemberInfo, IConventionContext)

在實體類型中加入屬性並對應 CLR 屬性或欄位後呼叫。

ProcessPropertyAdded(IConventionComplexPropertyBuilder, KeyAttribute, MemberInfo, IConventionContext)

來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs

在將複雜屬性加入帶有 CLR 屬性或欄位屬性的型別後呼叫。

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

參數

propertyBuilder
IConventionComplexPropertyBuilder

該物業的建商。

attribute
KeyAttribute

屬性。

clrMember
MemberInfo

擁有該屬性的成員。

context
IConventionContext

與大會執行相關的額外資訊。

適用於

ProcessPropertyAdded(IConventionPropertyBuilder, KeyAttribute, MemberInfo, IConventionContext)

來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs
來源:
KeyAttributeConvention.cs

在實體類型中加入屬性並對應 CLR 屬性或欄位後呼叫。

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

參數

propertyBuilder
IConventionPropertyBuilder

該物業的建商。

attribute
KeyAttribute

屬性。

clrMember
MemberInfo

擁有該屬性的成員。

context
IConventionContext

與大會執行相關的額外資訊。

適用於