Skip to content

Instantly share code, notes, and snippets.

@SaschaHeyer
Last active January 13, 2017 14:25
Show Gist options
  • Select an option

  • Save SaschaHeyer/24bacafbd4f5c6f13e1f184e5ff1b1ea to your computer and use it in GitHub Desktop.

Select an option

Save SaschaHeyer/24bacafbd4f5c6f13e1f184e5ff1b1ea to your computer and use it in GitHub Desktop.
nested mappings
public class MappingProfile : Profile
{
public MappingProfile()
{
CreateMap<Worklog, WorklogDto>()
.ForMember(dest => dest.IssueDto, opt => opt.MapFrom(x => x.Issue));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment