Event versioning and upcasting New in 1.10.0
Evolving event schemas in Marten without rewriting history — event type name mapping for namespace moves and class renames, additive vs breaking payload changes, upcasters (CLR-typed, raw JSON, async), side-by-side schema versions with MapEventTypeWithSchemaVersion, and how versioning interacts with projections and rebuilds.
Use when renaming or moving an event type, adding or removing a field on an event that already has stored instances, or answering 'how do we change this event now that there are a million of them'.
Skill details
- Skill name:
marten-event-versioning-and-upcasting - Applies to:
marten - Tags:
marten,event-sourcing,versioning,upcasting,schema-migration,projections,advanced - Added in: 1.10.0
- License: Proprietary. Copyright JasperFx Software LLC.
