-
-
Save JasonMore/1036431 to your computer and use it in GitHub Desktop.
AutoMapperAssist example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mapper.CreateMap<TestClass, TestClassViewModel>() | |
.ForMember(dest => dest.Bar, opt => opt.MapFrom(src => src.Foo)); | |
var map = new Mapper<TestClass, TestClassViewModel>(Mapper.Engine); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting idea, I'll have to play around with resolving an IConfiguration from my IoC