Ꜳåąɐȁặⱥᴀᴬ
AutoMapper example projects with mapping profiles
i have tried mapperly, it has features, but the point of it is keeping it simple; when you make a map you can immediately see the generated code when you F12 it, but like other source generated stuff (refit for example) it happened to me that code was not updated and compilation gave errors (with various tries to make it return to work like cleaning solution, compiling n times, restarting vs, etc)
in the last year errors like this got to almost 0, anyway
64 replies
AutoMapper example projects with mapping profiles
if it's a one shot project with just one principal domain i'm not against using automapper
if this has to be a project maintained for 20 years by multiple people with future evolutions then 99% i would stay away from it
64 replies
AutoMapper example projects with mapping profiles
also there are matter in organizing profiles if you have inheritance between projects and such
and if you have converters or custom stuff
AND ALSO mixing profiles with logic keeping a profile "clean" is... not good
64 replies
AutoMapper example projects with mapping profiles
remember that either you make a map for every field or if you rename a field the mapper will crash at runtime because you maybe forgot to add the map or rename the fields in the mapped types
with a sg mapper this doesn't happen, i would say this is not that small of a tradeoff
64 replies