Replies: 2 comments
-
Can you post the entire mapper definition, including the definitions for your product mappings? And the generated code? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing as the requested information was not provided. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I have a project with strongly typed ids. Everything works fine, if I want a simple mapping like this.
However, I really struggle on mapping this with a collection now. I have another class, called product, which has a n:m relationship to stores (for simplicity only focus on product stores for now) and looks something like this.
The mapping works somewhat. The only problem I have is, that the Product.Stores[].Id.Value is not Mapped to ProductDto.Stores[].Id and returns a json like this.
The id of the store is 100% not a Guid.Empty, so the mapping is just not considered.
I tried to play around with the "MapProperty" attribute, but didn't find the correct way on doing this. Is this a limitation of mapperly and I need to write a custom mapper? I hope, that someone can push me into the right direction.
Beta Was this translation helpful? Give feedback.
All reactions