Migration Guides (v1 -> v2) — Concurrency
Upgrade checklist from published NuGet v1.0.0 → v2.0.0 (BC-001–BC-012).
Migrating v1.0.0 to v2.0.0 (BC-001–BC-012)
Section titled “Migrating v1.0.0 to v2.0.0 (BC-001–BC-012)”- Advance
VersioninExecuteCasAsync(BC-001): Mutations onIVersionedEntitymust return an incrementedVersion(or implementIMutableVersionedEntity). - Eliminate reentrant CAS calls (
BC-002):AsyncLocalreentrancy guards fail fast instead of risking deadlocks or lost updates. - Explicit satellite dependencies (
BC-009): Satellite packages no longer transitively pullEricksonLopez.Concurrencyif you only reference.Abstractions; installEricksonLopez.Concurrencyexplicitly where needed. - Update
IConcurrencyAware.ConcurrencyToken?& conflict classifications (BC-005–BC-008): Handle nullableConcurrencyToken?(non-null defaults"None"/""), updated dialect error mappings (Deadlock,LockUnavailable,AlreadyExists), strict single-row checks inExecuteOptimisticAsync, and Oracle SQL without trailing;.
Note on Unreleased Local v3.0.0–v3.1.0 (BC-013–BC-014)
Section titled “Note on Unreleased Local v3.0.0–v3.1.0 (BC-013–BC-014)”Local workspace 3.1.0 adds a concurrent disposal barrier (BC-013) and per-instance reentrancy isolation preserving caller CancellationToken (BC-014). Both remain unpublished on NuGet.