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
与约定执行关联的其他信息。