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.
 
 
 
 
 
 

43 lines
1.4 KiB

using AutoMapper;
using Volo.Abp.AutoMapper;
using Win_in.Sfs.Basedata.Application.Contracts;
using Win_in.Sfs.Basedata.Domain;
namespace Win_in.Sfs.Basedata.Application;
public partial class BasedataApplicationAutoMapperProfile : Profile
{
private void EquipmentLocCapAutoMapperProfile()
{
CreateMap<EquipmentLocCap, EquipmentLocCapDTO>()
.IgnoreAuditedObjectProperties()
.ReverseMap();
CreateMap<EquipmentLocCapImportInput, EquipmentLocCap>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.TenantId)
.Ignore(x => x.Remark)
.Ignore(x => x.ExtraProperties)
.Ignore(x => x.ConcurrencyStamp)
.Ignore(x => x.StdQty)
.Ignore(x => x.PartCode)
.Ignore(x => x.Qty)
.Ignore(x => x.ConcurrencyStamp)
.ForMember(p => p.Code, p => p.MapFrom(q =>q.Code));
//CreateMap<EquipmentLocCap, EquipmentLocCapImportInput>()
//CreateMap<EquipmentLocCap, EquipmentLocCapForDongyangExportDTO>()
// .Ignore(x => x.ItemCategory)
// .Ignore(x => x.Color);
CreateMap<EquipmentLocCapEditInput, EquipmentLocCap>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.StdQty)
.Ignore(x => x.PartCode)
.Ignore(x => x.Qty)
.Ignore(x => x.ConcurrencyStamp).Ignore(x => x.Id);
}
}