Ejemplo n.º 1
0
 protected override void Establish_context()
 {
     _context = new MapperContext();
     _context.Configuration.ClearPrefixes();
     _context.CreateMap<Source, Destination>();
 }
 protected override void Establish_context()
 {
     _context = new MapperContext();
     var parentMapping = _context.CreateMap<Source, Target>();
     parentMapping.ForMember(dest => dest.Value, opt => opt.MapFrom(s => (TargetEnumValue) s.Value));
 }