I would like to create a generic/common mapping that will be the equivalent of the following mappings but with single line.
cfg.CreateMap<int?, PropertyModel<int?>>().ConvertUsing<ValueToPropertyModelConverter<int?>>();
cfg.CreateMap<double?, PropertyModel<double?>>().ConvertUsing<ValueToPropertyModelConverter<double?>>();
cfg.CreateMap<string, PropertyModel<string>>().ConvertUsing<ValueToPropertyModelConverter<string>>();
I would imagine something like
cfg.CreateMap<TValue, PropertyModel<TValue>>().ConvertUsing<ValueToPropertyModelConverter<TValue>>();
Any ideas ?
Thanks !
Riana