Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

Mapster.Tool does not work on arrays

Open novelhawk opened this issue 3 years ago • 0 comments

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

novelhawk avatar Aug 03 '22 10:08 novelhawk