Skip to content

Instantly share code, notes, and snippets.

@JasonMore
Forked from darrencauthon/gist:1036421
Created June 20, 2011 19:58
Show Gist options
  • Save JasonMore/1036431 to your computer and use it in GitHub Desktop.
Save JasonMore/1036431 to your computer and use it in GitHub Desktop.
AutoMapperAssist example
Mapper.CreateMap<TestClass, TestClassViewModel>()
.ForMember(dest => dest.Bar, opt => opt.MapFrom(src => src.Foo));
var map = new Mapper<TestClass, TestClassViewModel>(Mapper.Engine);
@JasonMore
Copy link
Author

Interesting idea, I'll have to play around with resolving an IConfiguration from my IoC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment