Skip to content

Commit

Permalink
GitBook: [master] one page modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ethno2405 authored and gitbook-bot committed Oct 5, 2020
1 parent a1875eb commit cc9e2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cronus-framework/domain-modeling/aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Concert : AggregateRoot<ConcertState>

### Aggregate root state

Use the abstract helper class `AggregateRootState<TAggregateRoot, TAggregateRootId>`. Also, you can implement the `IAggregateRootState` by yourself in case inheriting is not a viable option.
Use the abstract helper class `AggregateRootState<TAggregateRoot, TAggregateRootId>`. Also, you can implement the `IAggregateRootState` by yourself in case inheritance is not a viable option.

To change the state of an aggregate root, define event handlers for each event with the method signature `public void When(Event e) { ... }`.

Expand Down

0 comments on commit cc9e2b2

Please sign in to comment.