Quick test repo that shows some different marten patterns in use
.Net 6 SDK or Visual Studio 2022
Make sure you have a postgres (12+) db set up, change the connection string in MartenApi.EventStore\MartenConfiguration.cs
to match. This is lazy config, but this codebase is only for sandbox testing.
Have a look at MartenApi.EventStore\MartenConfiguration.cs
to see how marten is configured.
DocumentController
Has some basic crud operations for demonstration.
MartenApi.EventStore has an example of how the events/aggregations/services can be structured.