我的 DTO 类包含另一个子类说,
Class ABC_DTO
{
public String XYZ {get;set;}
public BCD_DTO BCD {get;set;}
}
Class BCD_DTO
{
public string Name {get;set;}
public string Age {get;set;}
}
//This is Viewmodel
class PQR_ViewModel
{
public string Name {get;set;}
public string Age {get;set;}
public String XYZ {get;set;}
}
How can i map above Dto ABC_DTO into PQR_ViewModel using ValueInjecter?