It is weird but I am stuck with a pretty simple case:
Say I have a class:
class Record
{
public List<Data> Data {get; set;}
public string OtherProp1 {get; set;}
public string OtherProp2 {get; set;}
}
And I want to map a List<Model>
from it.
Which is basically:
mapper.Map<List<Model>>(Record.Data);
But I want Mapster (or Mapper) to be able to make it right from the Record like this:
mapper.Map<List<Model>>(Record);
So
mapper.Map<List<Model>>(Record.Data); // Works easily
mapper.Map<List<Model>>(Record); // Can't config properly