19 lines
667 B
C#
19 lines
667 B
C#
using Mapster;
|
|
using Tnb.EquipMgr.Entities.Dto;
|
|
|
|
namespace Tnb.EquipMgr.Entities.Mapper
|
|
{
|
|
public class Mapper : IRegister
|
|
{
|
|
public void Register(TypeAdapterConfig config)
|
|
{
|
|
config.ForType<MoldMaintenance, MoldMaintainItemListOutput>()
|
|
.Map(dest => dest.item_id, src => src.id);
|
|
config.ForType<ToolMolds, RelevanceMoldListOutput>()
|
|
.Map(dest => dest.mold_id, src => src.id);
|
|
config.ForType<ToolMolds, MaintainPlanMoldLstOutput>()
|
|
.Map(dest => dest.mold_id, src => src.id);
|
|
//.Map(dest=>dest.mold_name,src=>src.mold_name);
|
|
}
|
|
}
|
|
} |