0
에 많은 내가 가진 도메인 모델과 나는 DomainModel과 반대에 DTO에서 매핑을 구성 할이AutoMpper +지도 복잡한 중첩 된 많은 관계
public class EntityDTO
{
public int EntityOnePropertyOne { get; set; }
public string EntityThreePropertyOne_ValueOne { get; set; }
public string EntityThreePropertyOne_ValueTwo { get; set; }
public string EntityThreePropertyOne_ValueThree { get; set; }
public string EntityThreePropertyOne_ValueFour { get; set; }
public string EntityThreePropertyOne_ValueFive { get; set; }
}
처럼 DTO가 AutoMapper를 사용했지만 그 방법을 알지 못했습니다 ... 어떤 제안이나 도움이 되셨습니까?
"EntityThreePropertyOne_ValueOne"이 (가) int가 아닌 것은 죄송합니다. 문자열입니다! 어떻게 automapper를 사용하여 그 값을 매핑 할 수 있습니까? 나를위한 과제는 dto의 속성 값을 Entity one의 Item으로 변경하는 것입니다.이 Item은 추가 필드와의 많은 관계를 유지합니다. – Mosby