Vogen icon indicating copy to clipboard operation
Vogen copied to clipboard

Add support for making value objects easier to use in Marten

Open SteveDunn opened this issue 1 year ago • 3 comments

Describe the feature

It is difficult to use value objects generated with Vogen in Marten. While value objects are best used in domain code, they are often used in infrastructure code. The issues are highlighted in this thread: https://x.com/jeremydmiller/status/1796720636460745213

SteveDunn avatar Jun 01 '24 07:06 SteveDunn

@SteveDunn I have been using Marten for a while and today I found this project. Up until now we have always implemented our primitives ourselves and I am really impressed with this solution here.

Now I am wondering what needs to be done so that I can use it in the domain code? You wrote that it is difficult?! So there seems to be a solution?

ChristopherLenz avatar Aug 14 '24 17:08 ChristopherLenz

Hi @ChristopherLenz - thanks for the feedback! Apparently, in recent versions of Marten now have support for Vogen. It was implemented in this PR: https://github.com/JasperFx/marten/pull/3268/files I've just found some conversations in their Discord channel that might steer you in the right direction: https://discord.com/channels/1074998995086225460/1074999076896112661/1258170623780196457

Hope that helps. Let me know how you get on, as I think this issue can now be closed.

SteveDunn avatar Aug 15 '24 07:08 SteveDunn

@ChristopherLenz how did you get on?

SteveDunn avatar Aug 22 '24 14:08 SteveDunn