DEV Community

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

lftrejo profile image

What’s the advantage of using this instead of implicit operator or explicit operator?

victorioberra profile image
Victorio Berra • Edited

Automapper has more quality of life features like built in mapping validation and helpful errors and it protects you against forgetting to map properties. Also it makes testing your app much easier since it's got the built in DI stuff so you could technically inject a mock mapper.

It's whole purpose is to make your life easier when mapping objects. You should use whatever works best for you.

thfsilvab profile image

Thank you for making this question, I am really curious about it too.