Skip to content

Map bool to Nullable bool gets null #343

Closed

Description

@Theam1127

We have source with these values:

IsCall:true,
IsSMS:true,
IsEmail:true
IsNonMandatory:false,
IsLine:false,
CalledTime:00:00:00

Then, we map it using .Adapt
image

However, from the mapping result, IsSMS gets null value, while other attributes are mapped correctly.

I ended up configured using MapWith and now problem has been solved.
image

But may I know why other fields were mapped without issue but only IsSMS gets null?

Activity

  1. mcamorchia commented on May 21, 2021

    @mcamorchia

    Hi,
    I think this is a duplicate issue.
    I opened a similar issue (#338), infact i had a property called CodeEU with the last letters in upper case and this is the only property that is not mapped.

  2. Theam1127 commented on May 22, 2021

    @Theam1127
    Author

    Hi,
    I think this is a duplicate issue.
    I opened a similar issue (#338), infact i had a property called CodeEU with the last letters in upper case and this is the only property that is not mapped.

    I see... Yea, I have another class with property that has last letter in uppercase and cannot be mapped too..

    Hope it can be fixed soon.. thanks for the info!

  3. self-assigned this
    on Jan 7, 2023
  4. andrerav commented on Jan 8, 2025

    @andrerav
    Member

    This should have been fixed by #590. Feel free to reopen if that is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions