re: Learn how YOU can convert your Objects between layers with Automapper, C#, .NET Core and VS Code VIEW POST


I recently found automapper and am really sold on the ease of use and power it offers. It's a really great product.

I am a bit confused about the DI piece though. I don't get why you need to specify the startup class or why it works in that way? I've never seen DI like that. I've kinda gone my own way and created a Singleton I inject on my own instead of using their functionality.

My question is, what is the DI doing with startup class? I can't see a benefit as I still have to define my maps.

Code of Conduct Report abuse