2025-06-16 17:24:23 +08:00

39 lines
1.8 KiB
C#

using Syc.Basic.Web.WMS;
using Syc.Basic.Web.WMS.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Syc.Basic.Web.DAQ.Application.Mapper
{
public class BaseMapper : WMSApplicationAutoMapperProfile
{
public BaseMapper()
{
//CreateMap<DeviceRelation, DeviceRelationAllOut>()
// .ForMember(dest => dest.ParentDeviceId, opt => opt.MapFrom(m => m.ParentDeviceId))
// .ForMember(dest => dest.ParentDeviceCode, opt => opt.MapFrom(m => m.ParentDeviceCode.ToString()))
// .ForMember(dest => dest.SubDeviceId, opt => opt.MapFrom(m => m.SubDeviceId))
// .ForMember(dest => dest.SubDeviceCode, opt => opt.MapFrom(m => m.SubDeviceCode.ToString()))
// .ReverseMap();
//CreateMap<DeviceVariable, DeviceVariableAllout>()
// .ForMember(dest => dest.OperationEnumName, opt => opt.MapFrom(m => m.OperationEnum.ToString()))
// .ForMember(dest => dest.DataEnumName, opt => opt.MapFrom(m => m.DataEnum.ToString()))
// .ForMember(dest => dest.DeviceCode, opt => opt.MapFrom(m => m.Device.DeviceCode))
// .ReverseMap();
//CreateMap<Push, PushAllOut>()
// .ForMember(dest => dest.PushEnumName, opt => opt.MapFrom(m => m.PushEnum.ToString()))
// .ForMember(dest => dest.HttpEnumName, opt => opt.MapFrom(m => m.HttpEnum.ToString()))
// .ReverseMap();
//CreateMap<ReadLog, ReadLoadAllOut>()
// .ForMember(dest => dest.DataEnumName, opt => opt.MapFrom(m => m.DataEnum.ToString()))
// .ForMember(dest => dest.DataOperationEnumName, opt => opt.MapFrom(m => m.DataOperationEnum.ToString()))
// .ReverseMap();
}
}
}