AutoMapperProfile.cs 490 B

1234567891011121314151617
  1. using AutoMapper;
  2. using WingInterfaceLibrary.DTO.Device;
  3. using WingInterfaceLibrary.DTO.User;
  4. using WingInterfaceLibrary.LiveConsultation;
  5. namespace WingDeviceService
  6. {
  7. public class AutoMapperProfile : Profile
  8. {
  9. public AutoMapperProfile()
  10. {
  11. CreateMap<UserDTO, UserPasswordDTO>().ReverseMap();
  12. CreateMap<DeviceInfoDTO, CacheDeviceDTO>().ReverseMap();
  13. CreateMap<DeviceInfoDTO, DeviceExtendInfoDTO>().ReverseMap();
  14. }
  15. }
  16. }