AutoMapperProfile.cs 909 B

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