Declarative Persistence Added in 1.2.0
Declarative reads and writes in Wolverine handlers and HTTP endpoints, so no IDocumentSession or DbContext is injected at all. Covers [Entity] for load-by-id and its siblings [All], [FirstOrDefault] and [Queryable] for the reads it cannot express, plus returning IStorageAction<T> / UnitOfWork<T> from pure functions.
Use when a handler loads or mutates an entity by id, needs every row of a small reference collection, wants to avoid manual LoadAsync/null checks, or needs multi-entity batch loads. Covers Storage.Insert/Update/Store/Delete, the OnMissing matrix, the provider support matrix, and AutoApplyTransactions.
Skill details
- Skill name:
wolverine-handlers-declarative-persistence - Applies to:
wolverine - Tags:
handlers,persistence,transactions,entity,all,queryable,first-or-default,storage-agnostic - Added in: 1.2.0
- License: Proprietary. Copyright JasperFx Software LLC.
