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.
 
 
 
 
 
 

41 lines
1.3 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 ItemGuideBookAutoMapperProfile()
{
CreateMap<ItemGuideBook, ItemGuideBookDTO>()
.ReverseMap();
CreateMap<ItemGuideBookImportInput, ItemGuideBook>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.TenantId)
.Ignore(x => x.Remark)
.Ignore(x => x.Name).Ignore(x => x.Desc1).Ignore(x => x.Desc2)
.Ignore(x => x.PictureBlobName)
.Ignore(x => x.ExtraProperties)
.Ignore(x => x.ConcurrencyStamp)
;
CreateMap<ItemGuideBook, ItemGuideBookImportInput>()
.Ignore(x => x.ReportStatus)
.Ignore(x => x.ReportReason);
CreateMap<ItemGuideBookEditInput, ItemGuideBook>()
.IgnoreAuditedObjectProperties()
.Ignore(x => x.Id)
.Ignore(x => x.TenantId)
.Ignore(x => x.Remark)
.Ignore(x => x.Name)
.Ignore(x => x.Desc1)
.Ignore(x => x.Desc2)
.Ignore(x => x.ConcurrencyStamp)
;
}
}