Mapster
Mapster copied to clipboard
Mapster.Tool does not work on arrays
Mapster.Tool does not project types to Dtos when the type is behind an array.
Object to map:
class A {
public B u { get; set; }
private B[] _arr;
public B[] arr { get => _arr; set => _arr = value; }
}
class B {}
Generated Dtos:
class ADto {
public B[] arr { get; set; }
public BDto u { get; set; }
}
class BDto {}
Changing to List<T> fixes the problem