PropertyAttributeConventionBase<TAttribute>.ProcessPropertyAdded Method

Definition

Overloads

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Called after a property is added to the entity type.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Called after a complex property is added to a type with an attribute on the associated CLR property or field.

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Called after a property is added to the entity type with an attribute on the associated CLR property or field.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs

Called after a property is added to the entity type.

C#
public virtual void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder> context);

Parameters

propertyBuilder
IConventionPropertyBuilder

The builder for the property.

context
IConventionContext<IConventionPropertyBuilder>

Additional information associated with convention execution.

Implements

Applies to

Entity Framework Core 9.0 и други версии
Продукт Версии
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs

Called after a complex property is added to a type with an attribute on the associated CLR property or field.

C#
protected virtual void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder propertyBuilder, TAttribute attribute, System.Reflection.MemberInfo clrMember, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext context);

Parameters

propertyBuilder
IConventionComplexPropertyBuilder

The builder for the property.

attribute
TAttribute

The attribute.

clrMember
MemberInfo

The member that has the attribute.

context
IConventionContext

Additional information associated with convention execution.

Applies to

Entity Framework Core 9.0 и Entity Framework Core 8.0
Продукт Версии
Entity Framework Core 8.0, 9.0

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs
Source:
PropertyAttributeConventionBase.cs

Called after a property is added to the entity type with an attribute on the associated CLR property or field.

C#
protected abstract void ProcessPropertyAdded (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, TAttribute attribute, System.Reflection.MemberInfo clrMember, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext context);

Parameters

propertyBuilder
IConventionPropertyBuilder

The builder for the property.

attribute
TAttribute

The attribute.

clrMember
MemberInfo

The member that has the attribute.

context
IConventionContext

Additional information associated with convention execution.

Applies to

Entity Framework Core 9.0 и други версии
Продукт Версии
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0