This project is read-only.

Post Actions for Mapping

Jan 18, 2012 at 7:56 PM
Edited Jan 18, 2012 at 7:58 PM

Hi people,

Anyone knows how can i do a mapping a Property with transformations/postaction like this:

mapper.Relate(model => !model.IsDirectory, viewModel => viewModel.IsExam);
mapper.Relate(model => model.IsDirectory ? model.Name : model.FullName , viewModel => viewModel.DisplayName);

 

Thanks,

 

Att,

Thiago