Skip to content

Revert from Mapperly to AutoMapper#830

Merged
neozhu merged 4 commits intomainfrom
reverseautomapper
Mar 13, 2025
Merged

Revert from Mapperly to AutoMapper#830
neozhu merged 4 commits intomainfrom
reverseautomapper

Conversation

@neozhu
Copy link
Copy Markdown
Owner

@neozhu neozhu commented Mar 13, 2025

This PR reverts our mapping implementation from Mapperly back to AutoMapper. While Mapperly's automatic code generation has improved performance, it has consistently struggled with compiling very complex entity objects and, in some cases, even caused Visual Studio to crash.

By switching back to AutoMapper, I can explicitly control every field mapping and custom logic. Although this change results in slightly more code, with the assistance of AI tools and Copilot, the additional effort is minimal compared to the benefits of having full control over the mapping process.

Key Changes:

  • Removed Mapperly code generation.
  • Updated all mapping configurations to use AutoMapper.
  • Verified that complex entity objects now compile reliably without issues.

@neozhu neozhu merged commit 688a299 into main Mar 13, 2025
4 checks passed
@neozhu neozhu deleted the reverseautomapper branch July 11, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant