Part of DKNet.EfCore.Abstractions. Implement IConcurrencyEntity<TType> to give infrastructure a consistent RowVersion property and setter.
Use the console-project setup in the Quick Start, then replace Program.cs with this example.
using DKNet.EfCore.Abstractions.Entities;
var account = new Account();
account.SetRowVersion([1, 2, 3]);
Console.WriteLine(account.RowVersion!.Length); // 3
public sealed class Account : Entity, IConcurrencyEntity<byte[]>
{
public byte[]? RowVersion { get; private set; }
public void SetRowVersion(byte[] version) => RowVersion = version;
}
The interface decorates RowVersion with [Timestamp], [Column(Order = 1000)] and [IgnoreAuditLog]. The implementation owns storage; the interface has no setter implementation.
The domain exposes IConcurrencyEntity; Extensions reads it when applying DefaultEntityTypeConfiguration. The configured EF provider performs conflict checks when the host saves.