Skip to content

Helper to automatic configure mappings with Automapper

Notifications You must be signed in to change notification settings

renepacios/Magic.Automapper

Repository files navigation

Magic AutoMapper

Helper to automatic configure mappings with Automapper

What is Magic 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.

Getting Started

Comming Soon

Acknowledgements

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

About

Helper to automatic configure mappings with Automapper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages