PropertyAttributeConventionBase<TAttribute>.ProcessPropertyAdded 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>) |
在屬性新增至實體類型之後呼叫。 |
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext) |
在複雜屬性新增至具有相關聯 CLR 屬性或欄位屬性的類型之後呼叫。 |
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext) |
在屬性新增至實體類型之後呼叫,該實體類型具有相關聯 CLR 屬性或欄位上的屬性。 |
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)
在屬性新增至實體類型之後呼叫。
public virtual void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder> context);
abstract member ProcessPropertyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder> -> unit
override this.ProcessPropertyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder> -> unit
Public Overridable Sub ProcessPropertyAdded (propertyBuilder As IConventionPropertyBuilder, context As IConventionContext(Of IConventionPropertyBuilder))
參數
- propertyBuilder
- IConventionPropertyBuilder
屬性的產生器。
與慣例執行相關聯的其他資訊。
實作
適用於
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)
在複雜屬性新增至具有相關聯 CLR 屬性或欄位屬性的類型之後呼叫。
protected virtual void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder propertyBuilder, TAttribute attribute, System.Reflection.MemberInfo clrMember, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext context);
abstract member ProcessPropertyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder * 'Attribute * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext -> unit
override this.ProcessPropertyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder * 'Attribute * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext -> unit
Protected Overridable Sub ProcessPropertyAdded (propertyBuilder As IConventionComplexPropertyBuilder, attribute As TAttribute, clrMember As MemberInfo, context As IConventionContext)
參數
- propertyBuilder
- IConventionComplexPropertyBuilder
屬性的產生器。
- attribute
- TAttribute
屬性。
- clrMember
- MemberInfo
具有 屬性的成員。
- context
- IConventionContext
與慣例執行相關聯的其他資訊。
適用於
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)
在屬性新增至實體類型之後呼叫,該實體類型具有相關聯 CLR 屬性或欄位上的屬性。
protected abstract void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, TAttribute attribute, System.Reflection.MemberInfo clrMember, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext context);
abstract member ProcessPropertyAdded : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * 'Attribute * System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext -> unit
Protected MustOverride Sub ProcessPropertyAdded (propertyBuilder As IConventionPropertyBuilder, attribute As TAttribute, clrMember As MemberInfo, context As IConventionContext)
參數
- propertyBuilder
- IConventionPropertyBuilder
屬性的產生器。
- attribute
- TAttribute
屬性。
- clrMember
- MemberInfo
具有 屬性的成員。
- context
- IConventionContext
與慣例執行相關聯的其他資訊。