Mapster
Mapster copied to clipboard
Unable to configure the custom mapping using "ConstructUsing"
I'm not able to map the following custom mapping and this possible with automapper. Any work around.
config.NewConfig<List<MyResult>, MyResultDto>()
.ConstructUsing(x =>
{
//do some custom stuff
return new PcrResultDto()
{
}
});
Use MapWith
Thanks, @goremykin, is this documented somewhere (or) are there any samples available that I can refer to? I have a feeling that Mapster bit lack on documentation.
@Gopichandar, Wiki
Thanks alot @goremykin