Replies: 1 comment
-
Never mind, this works just fine. I was seeing a misleading error message about my own stupid mistake. |
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
-
I have not been able to find an explicit answer to this, but it seems that mapping to records with init properties is not supported unless the record is defined using a constructor. For example, a record such as:
It seems that the only way to map to this type would be to define a constructor that includes both properties, or to configure the mapper to map each property explicitly (which would defeat the purpose of using an automated mapper). Is that correct, or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions