using AutoMapper; using Volo.Abp.AutoMapper; using Win_in.Sfs.Basedata.Application.Contracts; using Win_in.Sfs.Basedata.Domain; using Win_in.Sfs.Basedata.Kittings.Inputs; namespace Win_in.Sfs.Basedata.Application; public partial class BasedataApplicationAutoMapperProfile : Profile { private void KittingAutoMapperProfile() { CreateMap() .ReverseMap(); CreateMap() .ReverseMap(); CreateMap() .IgnoreAuditedObjectProperties() .Ignore(x => x.Details) .Ignore(x => x.TenantId) .Ignore(x => x.ExtraProperties) .Ignore(x => x.Remark) .Ignore(x => x.ConcurrencyStamp) .Ignore(x => x.Id); CreateMap() .IgnoreAuditedObjectProperties() //.ForMember(x => x., y => y.MapFrom(t => t.Code)) .ForMember(x => x.PartCode, y => y.MapFrom(t => t.PartCode)) .ForMember(x => x.Desc1, y => y.MapFrom(t => t.Desc1)) .ForMember(x => x.Desc2, y => y.MapFrom(t => t.Desc2)) .Ignore(x => x.MasterId) .Ignore(x => x.TenantId) .Ignore(x => x.Remark) .Ignore(x => x.Id); // CreateMap() // .IgnoreAuditedObjectProperties() // .Ignore(x => x.Items) // .Ignore(x => x.TenantId) // .Ignore(x => x.ExtraProperties) // .Ignore(x => x.Remark) // .Ignore(x => x.ConcurrencyStamp) // .Ignore(x => x.Id); //CreateMap() // .IgnoreAuditedObjectProperties() // .Ignore(x => x.MasterId) // .Ignore(x => x.Enabled) // .Ignore(x => x.TenantId) // .Ignore(x => x.Remark) // .Ignore(x => x.Id); CreateMap() .IgnoreAuditedObjectProperties(); // .ForMember(x => x.MasterId, y => y.MapFrom(t => t.MasterId)) CreateMap() .IgnoreAuditedObjectProperties() .Ignore(x => x.ConcurrencyStamp) .Ignore(x => x.Id); } //CreateMap() // ; // CreateMap() // ; // CreateMap() // .IgnoreAuditedObjectProperties() // .Ignore(x => x.Items) // .Ignore(x => x.TenantId) // .Ignore(x => x.ExtraProperties) // .Ignore(x => x.Remark) // .Ignore(x => x.ConcurrencyStamp) // .Ignore(x => x.Id); //CreateMap() // .IgnoreAuditedObjectProperties() // .ForMember(x => x.Code, y => y.MapFrom(t => t.Item_Code)) // .ForMember(x => x.Name, y => y.MapFrom(t => t.Item_Name)) // .ForMember(x => x.Description, y => y.MapFrom(t => t.Item_Description)) // .ForMember(x => x.Value, y => y.MapFrom(t => t.Item_Value)) // .Ignore(x => x.MasterId) // .Ignore(x => x.Enabled) // .Ignore(x => x.TenantId) // .Ignore(x => x.Remark) // .Ignore(x => x.Id); //CreateMap() // .IgnoreAuditedObjectProperties() // ; //CreateMap() // .IgnoreAuditedObjectProperties() // .Ignore(x => x.ConcurrencyStamp) //.Ignore(x => x.Id); }