Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

Mapper NOT mapping capitalized abbreviations to record property names

Open jvinkovic opened this issue 10 months ago • 0 comments

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

jvinkovic avatar Apr 12 '24 14:04 jvinkovic