Skip to main content
Table of Contents

Interface IHasRowVersion

Namespace
Stratara.Abstractions.Entities
Assembly
Stratara.Abstractions.dll

Optimistic-concurrency token mapped onto PostgreSQL's xmin system column by Npgsql. EF Core uses it to detect concurrent writes — DBConcurrencyException surfaces as DbUpdateConcurrencyException on conflict.

public interface IHasRowVersion
Extension Methods

Remarks

No real column is created in the schema; Npgsql maps the property to the system column. Required on every projection view so parallel projection writes stay safe — without an optimistic-concurrency token, a slower projection-worker can overwrite a faster one's committed result with stale state.

Properties

RowVersion

Current row version as read from xmin. Set by EF Core on save.

uint RowVersion { get; set; }

Property Value

uint