Skip to content

Simplify async mapping #806

@lucacivale

Description

@lucacivale

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>();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions