refactor(MappingProfile): add mapping for between TfFile and TfFileDto
This commit is contained in:
@@ -22,5 +22,6 @@ public class MappingProfile : AutoMapper.Profile
|
|||||||
CreateMap<PObjectStateHist, ObjectStateHistDto>()
|
CreateMap<PObjectStateHist, ObjectStateHistDto>()
|
||||||
.ForMember(dest => dest.Intl, opt => opt.MapFrom(src => src.State1 != null ? src.State1.IntlState : null))
|
.ForMember(dest => dest.Intl, opt => opt.MapFrom(src => src.State1 != null ? src.State1.IntlState : null))
|
||||||
.ForMember(dest => dest.Others, opt => opt.MapFrom(src => new string?[] { src.State2, src.State3, src.State4 }));
|
.ForMember(dest => dest.Others, opt => opt.MapFrom(src => new string?[] { src.State2, src.State3, src.State4 }));
|
||||||
|
CreateMap<TfFile, TfFileDto>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user