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

Mapper NOT mapping capitalized abbreviations to record property names #694

Closed
jvinkovic opened this issue Apr 12, 2024 · 2 comments
Closed

Comments

@jvinkovic
Copy link

jvinkovic commented Apr 12, 2024

Related to #388 #370
Issue still occurs for capitalized names such as: ModelUID


myModel.Adapt<MyModelDTO>();

public class MyModel 
{
    public string int Id { get; set; }
    public string ModelUID { get; set; }
    public string Name { get; set; }
}

public record MyModelDTO(int Id, string ModelUID, string Name)


ModelUID not mapped (ends like null). Rest is fine. 

Other way around:
myModelDTO.Adapt<MyModel>();

works for all properties

and if instead record, class is used, then also works fine

@DocSvartz
Copy link

Hello @jvinkovic @andrerav this seems to be a related issue #746

@andrerav
Copy link
Contributor

andrerav commented Jan 3, 2025

Thank you @DocSvartz! As you said, this should be fixed in the latest prerelease.

@andrerav andrerav closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants