Skip to content
Discussion options

You must be logged in to vote

Ideally, mapping code should be "pure", meaning it takes data in and transforms its shape without side effects, external dependencies, or complex logic.

You could use an instance mapper instead of the extension methods based mapper, inject your service and use ignore + after map.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RohitM-IN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants