AutoMapperProfile.cs 875 B

12345678910111213141516171819202122
  1. using AutoMapper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Gateway.Payment
  6. {
  7. public class AutoMapperProfile : Profile
  8. {
  9. public AutoMapperProfile()
  10. {
  11. ShouldMapField = fi => false;
  12. CreateMap<Gateway.Payment.Shared.PaymentOrderDto, Gateway.Payment.Shared.PaymentOrder>().ReverseMap();
  13. //CreateMap<ProbeConfig, Probe>().ReverseMap();
  14. //CreateMap<ProductConfig, Product>().ReverseMap();
  15. //CreateMap<Edge.Core.IndustryStandardInterface.ATG.Alarm, ATG_Classic_App.Model.Alarm>().ReverseMap();
  16. //CreateMap<Edge.Core.IndustryStandardInterface.ATG.Inventory, ATG_Classic_App.Model.Inventory>().ReverseMap();
  17. //CreateMap<Edge.Core.IndustryStandardInterface.ATG.Delivery, ATG_Classic_App.Model.Delivery>().ReverseMap();
  18. }
  19. }
  20. }