Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support async object mapping for the base CRUD application service #4862

Closed
hikalkan opened this issue Jul 23, 2020 · 0 comments
Closed

Support async object mapping for the base CRUD application service #4862

hikalkan opened this issue Jul 23, 2020 · 0 comments

Comments

@hikalkan
Copy link
Member

hikalkan commented Jul 23, 2020

MapToGetOutputDto, MapToGetListOutputDto... are sync and if we want to override them and make an async operation, we can do it in a natural way.

In this way, for example, you can override the MapToGetOutputDtoAsync to convert an entity to a DTO in an async way:

protected override async Task<PersonDto> MapToGetOutputDtoAsync(Person entity)
{
    //TODO...
}
@hikalkan hikalkan added this to the 3.1 milestone Jul 23, 2020
@hikalkan hikalkan self-assigned this Jul 23, 2020
@hikalkan hikalkan changed the title Make AbstractKeyReadOnlyAppService object mapping code async Support async object mapping for the base CRUD application service Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant