c# - replace static AutoMapper API; replace a Map method inside a Profile -
i'm replacing static automapper api: so, before had profile like: public class digitalresourceprofile : automapper.profile { protected override void configure() { automapper.mapper.createmap<dto, domain>(); automapper.mapper.createmap<domain, dto>() .formember(dst => dst.attachs, opts => opts.mapfrom(src => automapper.mapper.map<list<attachdomain>, list<attachdto>>(src.attachs))) .formember(dst => dst.timestamp, opts => opts.mapfrom(s => s.timestamp.touniversaltime())); automapper.mapper.createmap<attachdto, attachdomain>(); automapper.mapper.createmap<attachdomain, attachdto>() .formember(dst => dst.timestamp, opts => opts.mapfrom(s => s.timestamp.touniversaltime())); } } from on, profile class like: public class digitalresourceprofile : automapper.profile { protected override void configure() { this.cr...