Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

Mapster.Tool does not handle inheritance correctly

Open allejp opened this issue 3 years ago • 2 comments

Hi,

class Base{
 public int MyBaseProperty {get;set;}
}

class Derived : Base {
}

Mapster.Tool generates:

class BaseDto {
 public int MyBaseProperty {get;set;}
}

class DerivedDto {
 public int MyBaseProperty {get;set;}
}

instead of

class BaseDto {
 public int MyBaseProperty {get;set;}
}

class DerivedDto : BaseDto {
}

allejp avatar Oct 14 '22 13:10 allejp

Would be great if this could be a configurable option

furier avatar Mar 15 '23 15:03 furier

Any progress on this?

janiskulj avatar Apr 13 '23 22:04 janiskulj