Steven Giesel 1/16/2024

An alternative to AutoMapper

Read Original

The article criticizes AutoMapper for adding hidden complexity and configuration overhead in C# projects. It argues that manual mapping is often clearer and that for performance, the reflection cost is usually negligible compared to I/O. It proposes using compile-time source generators, specifically highlighting the Mapperly library, as a superior alternative that generates explicit mapping code, reducing runtime complexity and maintenance burden.

An alternative to AutoMapper

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week