Partager via


MaxLengthAttributeConvention.ProcessPropertyAdded Méthode

Définition

Surcharges

ProcessPropertyAdded(IConventionComplexPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)
ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

Appelée après l’ajout d’une propriété au type d’entité avec un attribut sur la propriété ou le champ CLR associé.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

System.Object.ProcessPropertyAdded(Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder,System.ComponentModel.DataAnnotations.MaxLengthAttribute,System.Reflection.MemberInfo,Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext)
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)

Paramètres

attribute
MaxLengthAttribute
clrMember
MemberInfo

S’applique à

ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

Appelée après l’ajout d’une propriété au type d’entité avec un attribut sur la propriété ou le champ CLR associé.

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)

Paramètres

propertyBuilder
IConventionPropertyBuilder

Générateur de la propriété.

attribute
MaxLengthAttribute

L'attribut.

clrMember
MemberInfo

Membre qui a l’attribut .

context
IConventionContext

Informations supplémentaires associées à l’exécution de la convention.

S’applique à