Helper to automatic configure mappings with Automapper
When we work with AutoMapper in a project normally we have an flat and basic profiles to configure maps like
Mapper.Map<entity,entityDto>();
where all properties of DTO type are equals (type and name) than source entity.
Magic AutoMapper simplify the way to configure this maps without need create a especific profiles. Maps will be defined into Dto class declaration.
You only need do something like this, Magic Automapper works for you:
using Magic.AutoMapper;
public class EntityDto : IMapFrom<Entity>
{
public int Id { get; set; }
public string DataName { get; set; }
}
This library is based on an original idea of Jason Taylor, exposed in NDC Sydney 2019 conference.
Comming Soon
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.