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

Enable object-mapping when source and destination is an enum #21660

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

MarkusHoz
Copy link
Contributor

@MarkusHoz MarkusHoz commented Dec 17, 2024

Before always the default value of the enum was returned from the Map function

Description

Resolves #21659

Object mapping does not work when source and destination are of type enum.
I added an additional check to DefaultObjectMapper.Map function that fixes this problem.

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)

How to test it?

Test: AbpAutoMapperModule_Basic_Tests.Should_Map_Enum()

Before always the default value of the enum was returned from the Map function
@CLAassistant
Copy link

CLAassistant commented Dec 17, 2024

CLA assistant check
All committers have signed the CLA.

@maliming
Copy link
Member

hi @MarkusHoz

Thank you for your contribution, I have changed some code: 803159b

@maliming maliming merged commit f36ae3d into abpframework:dev Dec 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Object mapping does not work when source and destination are of type enum
3 participants