I am currently having a look at and trying to understand Marten Storage for Postgres in C#. What I did currently was to create a simple DocumentStorage and Repository: