Table of Contents

Class ConcurrencyCheckAttributeConvention

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

A convention that configures a property as a concurrency token if it has the ConcurrencyCheckAttribute.

public class ConcurrencyCheckAttributeConvention : PropertyAttributeConventionBase<ConcurrencyCheckAttribute>, IPropertyAddedConvention, IPropertyFieldChangedConvention, IConvention
Inheritance
ConcurrencyCheckAttributeConvention
Implements
Inherited Members

Remarks

See Model building conventions for more information and examples.

Constructors

ConcurrencyCheckAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of ConcurrencyCheckAttributeConvention.

public ConcurrencyCheckAttributeConvention(ProviderConventionSetBuilderDependencies dependencies)

Parameters

dependencies ProviderConventionSetBuilderDependencies

Parameter object containing dependencies for this convention.

Methods

ProcessPropertyAdded(IConventionPropertyBuilder, ConcurrencyCheckAttribute, MemberInfo, IConventionContext)

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

Parameters

propertyBuilder IConventionPropertyBuilder
attribute ConcurrencyCheckAttribute
clrMember MemberInfo
context IConventionContext