Skip to content

Commit

Permalink
GitBook: [master] one page modified
Browse files Browse the repository at this point in the history
  • Loading branch information
mynkow authored and gitbook-bot committed Oct 7, 2020
1 parent 1668670 commit cace394
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/cronus-framework/domain-modeling/aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public class ConcertState : AggregateRootState<Concert, ConcertId>
}
```

{% hint style="info" %}
You could read more about the state pattern [here](https://refactoring.guru/design-patterns/state/csharp/example) and [here](https://www.dofactory.com/net/state-design-pattern).
{% endhint %}

### Aggregate root id

All aggregate root ids must implement the `IAggregateRootId` interface. Since Cronus uses [URNs](https://en.wikipedia.org/wiki/Uniform_Resource_Name) for ids that will require implementing the [URN specification](https://tools.ietf.org/html/rfc8141) as well. If you don't want to do that, you can use the provided helper base class `AggregateRootId`.
Expand Down

0 comments on commit cace394

Please sign in to comment.