Table of Contents

VersionAttribute Class

Indicates that the marked field or property holds the version counter used for optimistic concurrency control.

Remarks

When this attribute is present on an integer field or property, Aurelius enables versioned concurrency control for that entity. Before updating a record, Aurelius checks that the version in the database matches the version in memory. If another process has changed the record since it was loaded, an exception is raised. The field or property type must be Integer.

Syntax

Unit: Aurelius.Mapping.Attributes

VersionAttribute = class(TCustomAttribute);