MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.32k stars 329 forks source link

Mapper NOT mapping capitalized abbreviations to record property names #694

Open jvinkovic opened 5 months ago

jvinkovic commented 5 months ago

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