Software-Engineering
YT-Video
# AutoMapper ?
Is a library for mapping objects from one type to another.
When working with sensitive data you will probably gonna use DTOs SE_DTO.
But you have to map these DTOs in order to not use your standard class.
# Without AutoMapper
Let’s assume we have an API or some HTTP-Methods:
Instead, do the following:
# AutoMapperProfile
Create a Profile for our AutoMapper.
Also make sure to register the AutoMapper Profile as Service.
# Use Mapper in Controller
Now we can use our IMapper
because we registered it in DI-Container.