fluentsprings / ExpressMapper

Mapping .Net types
http://www.expressmapper.org
Other
310 stars 65 forks source link

Reverse mapping registration #104

Open anisimovyuriy opened 8 years ago

anisimovyuriy commented 8 years ago

Reverse mapping registration for simple mappings. Feature like:

Mapper
        .Register<Product, ProductViewModel>()
        .Reverse(); // - which means Mapper.Register<ProductViewModel, Product>()

Won't work for something like this ```.Member(dest => dest.Name, src => $"{src.Firstname} {src.Lastname}")).