Closed Xriuk closed 1 year ago
ConvertUsing
is not supported for expression mapping .ForPath
, ForMember
and the "auto mapped" properties are supported.
You probably want the following:
var config = new MapperConfiguration(c => {
c.CreateMap<TestProduct, TestProductDto>()
.ForMember(d => d.Id, opts => opts.MapFrom(s => s.Id == null ? 0 : s.Id.MyId));
});
I don't know if I'm doing something wrong, here's my setup
Exception: