Exploring AutoMapper
We just covered different ways to implement object mapping, but here we leverage an open-source tool named AutoMapper that does it for us instead of implementing our own.
Why bother learning all of that if a tool already does it? There are a few reasons to do so:
- It is important to understand the concepts; you don’t always need a full-fledged tool like AutoMapper. Moreover, if you work in a regulated enterprise, you don’t have the luxury of loading every NuGet package you want and must go through a vetting process for each one.
- It allowed us to cover multiple patterns that we can use in other contexts and apply them to components with different responsibilities. So, all in all, you should have learned multiple new techniques during this object mapping progression.
- Lastly, we dug deeper into applying the SOLID principles to write better programs.
Project – AutoMapper
The AutoMapper project is also a copy...