Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

Simplify async mapping

Open lucacivale opened this issue 7 months ago • 0 comments

Is it possible to add simpler extensions methods to IMapper and/or TypeAdapterSetter to simplify async mapping?

Currently we have to

var dto = await poco.BuildAdapter()
    .AdaptToTypeAsync<Dto>();

or

var dto = await _mapper.From(poco)
    .AdaptToTypeAsync<Dto>();

It would be really great if async mapping could be as nice as sync mapping.

E. g.

var dto = await _mapper.MapAsync<Dto>(poco);

or

var dto = await poco.AdaptToTypeAsync<Dto>();

lucacivale avatar Jun 12 '25 12:06 lucacivale