C#C
C#3y ago
32 replies
Anton

❔ Multiple configurations with automapper

I have two automapper configurations, the first one is used to project entities to dtos when querying ef core normally or when just mapping objects, while the second one is for use with OData.

A while back I have asked about conventions of service configuration, and the answer was quite different from my intuitive solution.

So what I'm asking here is what's the conventional way of registering multiple automapper configurations? A factory by name or index does not seem to be officially supported by the public API, should I make a factory myself? Maybe some other library or option exists?
Was this page helpful?