StronglyTypedId icon indicating copy to clipboard operation
StronglyTypedId copied to clipboard

Guidance for use with AutoMapper

Open grosch-intl opened this issue 1 year ago • 1 comments

Andrew, this project is awesome and has already found bugs in my code. Thank you!

I use AutoMapper in my project, and as of version 11 they stopped supporting TypeConverter for performance reasons. I have my EF stuff in a project of its own. This now means that the database has to take a dependency on AutoMapper. That's not the worst thing in the world, but I wanted to know if you had guidance so the database project doesn't have to depend on AutoMapper.

grosch-intl avatar Oct 03 '24 17:10 grosch-intl

Hey, it's not easily to visualize exactly how this arranged, but seeing as it's 4 months later, I'm guessing you figured it out 😅

The "easy" option seems to be adding the TypeConverterMapper as described in the Automapper migration docs and sample. Otherwise, can you configure a custom Type converter?

andrewlock avatar Feb 13 '25 22:02 andrewlock