Mapping entity with one-to-many relationship?

Sep 21, 2013 at 6:36 PM
Edited Sep 22, 2013 at 3:03 PM
Hi, this is the first time I've used ValueInjecter in a project and could use some assistance.

I have an entity object:
    public class Configuration
        public virtual int Id { get; set; }
        public virtual IEnumerable<PluginSetting> Settings { get; set; }
I am using the AutoMapper posted in the docs to map this entity object to a model object like so:
            var models = Mapper.Map<IEnumerable<Configuration>, IEnumerable<ConfigurationModel>>(entities);
The problem is that it does not recursively map the Settings too. How can I get ValueInjecter to do this?
Sep 26, 2013 at 8:51 PM
debug it and you should be able to find the problem