How to pass dynamic source to Mapper.CreateMap<source, destination> method in automapper -


i have scenario have pass source class dynamic. tried generic type class not working.

public virtual void mapattributefact<t>() {    mapper.createmap<t, dto.tabrender.attribute>()  .formember(dest => dest.ismultiselect, src => src.mapfrom(opt => opt.multiselect)) } 

please me how pass dynamic.

thanks in advance


Comments