Skip to content

Instantly share code, notes, and snippets.

@carcer
Created April 18, 2012 16:13
Show Gist options
  • Save carcer/2414622 to your computer and use it in GitHub Desktop.
Save carcer/2414622 to your computer and use it in GitHub Desktop.
Mapper.CreateMap<INode, NavigationItem>().AfterMap((n, ni) => ni.Children = n.ChildrenAsList.MapTo<IEnumerable<NavigationItem>>())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment