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.
 
 
 
 
 
 

18 lines
561 B

using AutoMapper;
using Volo.Abp.AutoMapper;
using Win_in.Sfs.Label.Application.Contracts;
using Win_in.Sfs.Label.Domain;
namespace Win_in.Sfs.Label.Application;
public class PalletLabelAutoMapperProfile : Profile
{
public PalletLabelAutoMapperProfile()
{
CreateMap<PalletLabel, PalletLabelDto>()
.ForMember(x => x.ItemName, y => y.MapFrom(d => d.Name))
.ForMember(x => x.ItemDesc1, y => y.MapFrom(d => d.Desc1))
.ForMember(x => x.ItemDesc2, y => y.MapFrom(d => d.Desc2))
.ReverseMap();
}
}