Skip to content

Instantly share code, notes, and snippets.

@jbogard
Last active April 14, 2022 12:24
Show Gist options
  • Save jbogard/64eb628063a1ac636091 to your computer and use it in GitHub Desktop.
Save jbogard/64eb628063a1ac636091 to your computer and use it in GitHub Desktop.
var config = new MapperConfiguration(cfg => {
cfg.CreateMap<Source, Dest>();
});
IMapper mapper = config.CreateMapper();
var source = new Source();
var dest = mapper.Map<Source, Dest>(source);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment