This sample shows an Event Sourcing implementation with Marten DB and F#.
The Domain Model contains Type Aliases as described here.
The challenge was to get the Marten serializer to serialize the Type alias
type CustomerNumber = CustomerNumber of string
from this:
to this:
The solution evolved in two steps: Commit 1, Commit 2.
Thanks to Isaac Abraham for getting this done!