using Mapster; using Myshipping.Application.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Myshipping.Application { public class TaskManageCompareMapper : IRegister { public void Register(TypeAdapterConfig config) { config.ForType() .Map(dest => dest.BookingNo, src => src.BOOKINGNO) .Map(dest => dest.TenantId, src => src.TenantId) .Map(dest => dest.TenantName, src => src.TenantName) .Map(dest => dest.YardCode, src => src.YARDID) .Map(dest => dest.YardCName, src => src.YARD) .Map(dest => dest.VesselName, src => src.VESSEL) .Map(dest => dest.VoyNo, src => src.VOYNO) .Map(dest => dest.MasterBlNo, src => src.MBLNO) .Map(dest => dest.HouseBlNo, src => src.HBLNO) .Map(dest => dest.PortLoadId, src => src.PORTLOADID) .Map(dest => dest.PortLoad, src => src.PORTLOAD) .Map(dest => dest.PortDischargeId, src => src.PORTDISCHARGEID) .Map(dest => dest.PortDischarge, src => src.PORTDISCHARGE) .Map(dest => dest.TransportId, src => src.TRANSPORTID) .Map(dest => dest.Transport, src => src.TRANSPORT) .Map(dest => dest.PlaceDeliveryId, src => src.PLACEDELIVERYID) .Map(dest => dest.PlaceDelivery, src => src.PLACEDELIVERY) .Map(dest => dest.DestinationId, src => src.DESTINATIONID) .Map(dest => dest.Destination, src => src.DESTINATION) .Map(dest => dest.PKGs, src => src.PKGS) .Map(dest => dest.KGs, src => src.KGS) .Map(dest => dest.CBM, src => src.CBM) .Map(dest => dest.GoodsDescription, src => src.DESCRIPTION); config.ForType() .Map(dest => dest.ContaType, src => src.CTNCODE) .Map(dest => dest.ContaTypeName, src => src.CTNALL) .Map(dest => dest.ContaNo, src => src.CNTRNO) .Map(dest => dest.SealNo, src => src.SEALNO) .Map(dest => dest.KindPKGs, src => src.KINDPKGS) .Map(dest => dest.TareWeight, src => src.TAREWEIGHT) .Map(dest => dest.PKGs, src => src.PKGS) .Map(dest => dest.KGs, src => src.KGS) .Map(dest => dest.CBM, src => src.CBM); config.ForType() .Map(dest => dest.BookingNo, src => src.BOOKINGNO) .Map(dest => dest.TenantId, src => src.TenantId) .Map(dest => dest.TenantName, src => src.TenantName) .Map(dest => dest.YardCode, src => src.YARDID) .Map(dest => dest.YardCName, src => src.YARD) .Map(dest => dest.VesselName, src => src.VESSEL) .Map(dest => dest.VoyNo, src => src.VOYNO) .Map(dest => dest.MasterBlNo, src => src.MBLNO) .Map(dest => dest.HouseBlNo, src => src.HBLNO) .Map(dest => dest.PortLoadId, src => src.PORTLOADID) .Map(dest => dest.PortLoad, src => src.PORTLOAD) .Map(dest => dest.PortDischargeId, src => src.PORTDISCHARGEID) .Map(dest => dest.PortDischarge, src => src.PORTDISCHARGE) .Map(dest => dest.TransportId, src => src.TRANSPORTID) .Map(dest => dest.Transport, src => src.TRANSPORT) .Map(dest => dest.PlaceDeliveryId, src => src.PLACEDELIVERYID) .Map(dest => dest.PlaceDelivery, src => src.PLACEDELIVERY) .Map(dest => dest.DestinationId, src => src.DESTINATIONID) .Map(dest => dest.Destination, src => src.DESTINATION) .Map(dest => dest.PKGs, src => src.PKGS) .Map(dest => dest.KGs, src => src.KGS) .Map(dest => dest.CBM, src => src.CBM) .Map(dest => dest.GoodsDescription, src => src.DESCRIPTION); config.ForType() .Map(dest => dest.ContaType, src => src.CTNCODE) .Map(dest => dest.ContaTypeName, src => src.CTNALL) .Map(dest => dest.ContaNo, src => src.CNTRNO) .Map(dest => dest.SealNo, src => src.SEALNO) .Map(dest => dest.KindPKGs, src => src.KINDPKGS) .Map(dest => dest.TareWeight, src => src.TAREWEIGHT) .Map(dest => dest.PKGs, src => src.PKGS) .Map(dest => dest.KGs, src => src.KGS) .Map(dest => dest.CBM, src => src.CBM); } } }