|
|
@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
using Mapster;
|
|
|
|
|
|
|
|
using Myshipping.Application.EDI;
|
|
|
|
|
|
|
|
using Myshipping.Application.Entity;
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
public class BookingTrucMapper : IRegister
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
public void Register(TypeAdapterConfig config)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
config.ForType<BookingTruck, BookingTruckDto>()
|
|
|
|
|
|
|
|
.Map(dest => dest.Id, src => src.Id)
|
|
|
|
|
|
|
|
.Map(dest => dest.BookingId, src => src.BookingId)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|