refactor(MappingProfile): add mapping for between TfFile and TfFileDto
This commit is contained in:
parent
4e5cb91967
commit
d4b33d4b9a
@ -22,5 +22,6 @@ public class MappingProfile : AutoMapper.Profile
|
||||
CreateMap<PObjectStateHist, ObjectStateHistDto>()
|
||||
.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 }));
|
||||
CreateMap<TfFile, TfFileDto>();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user