Inheriting base class mappings #1817
Replies: 1 comment
-
This is currently not supported by Mapperly. There are #1780 and #513. If you have additional input, comment on one of these issues. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently working on an application where I need to map many entities to DTOs. All entities derive from
EntityBase
and all DTOs derive fromDtoBase
. One common issue is that each entity has aModified
property that needs conversion when mapping to DTOs.Is there a way to specify the mapping between these base classes once, and have all derived mappers inherit this mapping configuration automatically? This would eliminate the need to duplicate the property mapping code across all my mapper classes.
Beta Was this translation helpful? Give feedback.
All reactions