Compartir a través de


MaxLengthAttributeConvention.ProcessPropertyAdded Método

Definición

Sobrecargas

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

Se llama después de agregar una propiedad al tipo de entidad con un atributo en la propiedad o campo CLR asociado.

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)

Parámetros

attribute
MaxLengthAttribute
clrMember
MemberInfo

Se aplica a

ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

Se llama después de agregar una propiedad al tipo de entidad con un atributo en la propiedad o campo CLR asociado.

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)

Parámetros

propertyBuilder
IConventionPropertyBuilder

Generador de la propiedad .

attribute
MaxLengthAttribute

El atributo.

clrMember
MemberInfo

Miembro que tiene el atributo .

context
IConventionContext

Información adicional asociada a la ejecución de la convención.

Se aplica a