Not sure what mapper to use or why this mapping doesn't work

May 13, 2011 at 4:56 PM

I have 2 simple entities

 

public class Model {
        public List<string> Fixed { get; set; }
        public string Id { get; set; }
}

public class ViewModel {
        public List<string> Fixed { get; set; }
        public string Id { get; set; }
}

 

Usage

var model = new Model();
model.InjectFrom(theViewModel);

On the Model i only have Id, I don't have any of the values of Fixed.

May 13, 2011 at 6:04 PM

Nevermind, user error my real case was less trivial than what I posted I meant to be mapping from 1 layer deep on the one side so it makes perfect sense that it wasn't working.