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 SupplierItemAutoMapperProfile() { CreateMap() .ReverseMap(); CreateMap() .IgnoreAuditedObjectProperties() .Ignore(x => x.TenantId) .Ignore(x => x.ExtraProperties) .Ignore(x => x.ConcurrencyStamp) .Ignore(x => x.SupplierPackQty) .Ignore(x => x.ItemName) ; CreateMap() .Ignore(x => x.ReportStatus) .Ignore(x => x.ReportReason); CreateMap() .IgnoreAuditedObjectProperties() //.ForMember(x => x.SupplierPackQty, y => y.MapFrom(d => new UomQty(d.SupplierPackUom, d.SupplierPackQty))) .Ignore(x => x.ConcurrencyStamp) .Ignore(x => x.Id); } }