Partager via


MaxLengthAttributeConvention.ProcessPropertyAdded Method

Definition

Overloads

ProcessPropertyAdded(IConventionComplexPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

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

ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

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

ProcessPropertyAdded(IConventionComplexPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

Source:
MaxLengthAttributeConvention.cs
Source:
MaxLengthAttributeConvention.cs

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

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

Parameters

propertyBuilder
IConventionComplexPropertyBuilder

The builder for the property.

attribute
MaxLengthAttribute

The attribute.

clrMember
MemberInfo

The member that has the attribute.

context
IConventionContext

Additional information associated with convention execution.

Applies to

ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

Source:
MaxLengthAttributeConvention.cs
Source:
MaxLengthAttributeConvention.cs
Source:
MaxLengthAttributeConvention.cs
Source:
MaxLengthAttributeConvention.cs
Source:
MaxLengthAttributeConvention.cs
Source:
MaxLengthAttributeConvention.cs
Source:
MaxLengthAttributeConvention.cs

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

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

Parameters

propertyBuilder
IConventionPropertyBuilder

The builder for the property.

attribute
MaxLengthAttribute

The attribute.

clrMember
MemberInfo

The member that has the attribute.

context
IConventionContext

Additional information associated with convention execution.

Applies to