Skip to content

DmConcurrencyTokenAttribute ​

Namespace: MJCZone.DapperMatic.DataAnnotations

Assembly: MJCZone.DapperMatic

Summary ​

Marks the property that changes on every write, so that a row written by key is written only if no one else has written it since it was read: an <c>int</c> or <c>long</c> (incremented), a <c>Guid</c> (new on each write), or a <c>byte[]</c> (new random bytes, or on SQL Server a <c>rowversion</c> column the database writes). A row that changed throws <c>DmConcurrencyException</c>.

Inheritance ​

Base Class: Attribute

sealed public

Contents ​

Constructors (1) | Methods (6) | Properties (1)

Constructors ​

DmConcurrencyTokenAttribute ​

csharp
DmConcurrencyTokenAttribute()

Methods ​

MethodSummary
Equals
GetHashCode
Match
IsDefaultAttribute
GetType
ToString

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Match ​

csharp
Match()

IsDefaultAttribute ​

csharp
IsDefaultAttribute()

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Properties ​

TypeId ​

Type: object