Cratis Chronicle Event Constraints

Enforce append-time uniqueness in Chronicle with the [Unique] attribute, [RemoveConstraint], and IConstraint, and specify the violation with EventScenario. Use when a rule must hold at the event store rather than in a command, so two concurrent appends cannot both win. Do not use for ordinary command input validation and do not use to create a projection.

Cratis Updated

File contents

Cratis/AI/tree/main/skills/cratis-chronicle-event-constraints commit c972351d4d

Frequently asked questions

npx skillmds@latest add cratis/cratis-chronicle-event-constraints