Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public class FooBarVm
  2. {
  3. public int id { get; set; }
  4. public BarRecord bar { get; set; }
  5. public string foo { get; set; }
  6. }
  7.  
  8. Mapper.CreateMap<FooBarRecord, FooBarVm>()
  9. .ForMember(s => s.bar, m => m.MapFrom(rec => rec.bar))
  10. //other columns - those are OK
  11. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement