I\'m mapping a list to another list with Automapper, but it seems that my items are not copied.
Here is my code:
var roles = userRepo.GetRoles(null).
In my case, I had the (parent) type mapping configured correctly but I didn't add the mappings for the child records, so for this:
class FieldGroup { string GroupName { get; set; } ... List fields { get; set; } }
I had to add the second mapping:
cfg.CreateMap(); cfg.CreateMap(); << was missing