Open Ekkeir opened 3 months ago
What should happen in this scenario if name-dependency was reduced?
public class Destination
{
public Destination(int number1, int number2)
{
Id1 = number2;
Id2 = number1;
}
public int Id1 { get; }
public int Id2 { get; }
}
There's an exception produced when mapping to a class with a ctor:
The following exception is produced:
The exception message seems misleading as (I may have missed it in documentation) mapster seems to depend on argument names. Renaming
Destination
ctor argument fromnumber
toid
is enough for the test to succeed. That is, changing to the following:Suggestions: