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

Open
jvinkovic opened this issue Apr 12, 2024 · 0 comments
Open

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

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

1 participant