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() .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(); } }