Mapster.Tool does not generate member mapping when ShallowCopyForSameType and UseDestinationValue is used and source and destination member type is same.
Example:
Declaration:
public class Src
{
public IList<string> ListWithGetOnly { get; } = new List<string>();
public List<string> SameTypeList { get; } = new();
}
public class Dst
{
public List<string> ListWithGetOnly { get; } = new List<string>();
public List<string> SameTypeList { get; } = new List<string>();
}
Mapster.Tool does not generate member mapping when
ShallowCopyForSameType
andUseDestinationValue
is used and source and destination member type is same. Example: Declaration:Mapper configuration:
What gets generated:
Sample project: MapsterBug-UseDestinationValue.zip