public class Destination
{
public decimal Obj1 { set; get; }
public decimal Obj2 { set; get; }
public int Obj3 { set; get; }
}
public class Source
{
public decimal Obj1 { set; get; }
public decimal Obj2 { set; get; }
public decimal Obj3 { set; get; }
}
我如何将Source
类映射到Destination
,但只能Decimal
使用 Automapper 类型?