Table of Contents

Class TimestampAttributeConvention

Namespace
Microsoft.EntityFrameworkCore.Metadata.Conventions
Assembly
Microsoft.EntityFrameworkCore.dll

A convention that configures the property as a concurrency token if a TimestampAttribute is applied to it.

public class TimestampAttributeConvention : PropertyAttributeConventionBase<TimestampAttribute>, IPropertyAddedConvention, IPropertyFieldChangedConvention, IConvention
Inheritance
TimestampAttributeConvention
Implements
Inherited Members

Remarks

See Model building conventions for more information and examples.

Constructors

TimestampAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of TimestampAttributeConvention.

public TimestampAttributeConvention(ProviderConventionSetBuilderDependencies dependencies)

Parameters

dependencies ProviderConventionSetBuilderDependencies

Parameter object containing dependencies for this convention.

Methods

ProcessPropertyAdded(IConventionPropertyBuilder, TimestampAttribute, MemberInfo, IConventionContext)

protected override void ProcessPropertyAdded(IConventionPropertyBuilder propertyBuilder, TimestampAttribute attribute, MemberInfo clrMember, IConventionContext context)

Parameters

propertyBuilder IConventionPropertyBuilder
attribute TimestampAttribute
clrMember MemberInfo
context IConventionContext