1
가 고려 기존 개체 데이터의 나머지 잃지 않고 개체를 기존 :이 매핑 후DTO
class OriginalContact
{
public int Id{set;get;}
public string Name{set;get;}
public string CustomerCode{set;get;}
}
class DTOContact
{
public int Id{set;get;}
public string Name{set;get;}
}
OriginalContact originalContact = new OriginalContact
{
CustomerCode="123";
}
DTOContact dtoContact= new DTOContact
{
Id=1,
Name="David"
}
Mapper.Map(dtoContact, originalContact);
을 내가 원래 값을 유지하면서지도 할 수있는 방법이 있나요 CustomerCode 값
잃을?
당신이 당신의지도 구성을 만들 보여줄 수 있습니까? –