Leer en inglés

Compartir a través de


TimestampAttributeConvention Clase

Definición

Convención que configura la propiedad como un token de simultaneidad si se aplica a TimestampAttribute ella.

C#
public class TimestampAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.TimestampAttribute>
Herencia

Comentarios

Consulte Convenciones de creación de modelos para obtener más información y ejemplos.

Constructores

Propiedades

Dependencies

Dependencias para este servicio.

(Heredado de PropertyAttributeConventionBase<TAttribute>)

Métodos

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Se llama después de agregar una propiedad compleja a un objeto similar a un tipo.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Se llama después de cambiar el campo de respaldo de una propiedad compleja.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

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

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Se llama después de agregar una propiedad al tipo de entidad.

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

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

(Heredado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TimestampAttribute, MemberInfo, IConventionContext)

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

ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Se llama después de cambiar el campo de respaldo de una propiedad.

(Heredado de PropertyAttributeConventionBase<TAttribute>)

Se aplica a

Producto Versiones
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0