You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
828 B

2 years ago
using AutoMapper;
using Volo.Abp.AutoMapper;
using Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Mes.Mes.DTOs;
using Win_in.Sfs.Wms.DataExchange.Application.Contracts.Iac.Mes.Mes.Inputs;
using Win_in.Sfs.Wms.DataExchange.Domain.Iac.Mes.MesProductL7PartsNotes;
namespace Win_in.Sfs.Wms.DataExchange.Application.Iac.Mes.Mes;
public class MesProductL7PartsNoteAutoMapperProfile : Profile
{
public MesProductL7PartsNoteAutoMapperProfile()
{
CreateMap<MesProductL7PartsNote, MesProductL7PartsNoteDTO>()
.ForMember(x => x.CreationTime, y => y.MapFrom(d => d.CreationTime))
.ReverseMap();
CreateMap<MesProductL7PartsNoteCreateInput, MesProductL7PartsNote>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.ConcurrencyStamp).Ignore(x => x.Id);
}
}