Mapster
Mapster copied to clipboard
Mapper NOT mapping capitalized abbreviations to record property names
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