Files
CapMachine/CapMachine.Wpf/MapperProfile/CanLinRWConfigProfile.cs
Tyrone CT a7fc676b82 逻辑规则的初步增加工能:
1)规则的界面的增删改查
2)规则服务的初步测试,目前测试是OK的
2025-04-21 17:10:11 +08:00

23 lines
569 B
C#

using AutoMapper;
using CapMachine.Model;
using CapMachine.Model.CANLIN;
using CapMachine.Wpf.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.MapperProfile
{
public class CanLinRWConfigProfile : Profile
{
public CanLinRWConfigProfile()
{
CreateMap<CanLinRWConfig, CanLinRWConfigDto>()
.ForMember(dest => dest.LogicRuleDto, opt => opt.MapFrom(src => src.LogicRule))
.ReverseMap();
}
}
}