Skip to content

Commit

Permalink
Adding missing EventType attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
einari authored Sep 29, 2024
1 parent 19af225 commit 90d6e34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Documentation/get-started/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ Lets add an event type called `ItemAddedToCart` by adding a file called `ItemAdd
Add the following to it:

```csharp
using Cratis.ChronicleEvents;
using Cratis.Chronicle.Events;

namespace ECommerce;

[EventType]
public record ItemAddedToCart(string ItemId, int Quantity);
```

Expand Down

0 comments on commit 90d6e34

Please sign in to comment.