逻辑规则的初步增加工能:

1)规则的界面的增删改查
2)规则服务的初步测试,目前测试是OK的
This commit is contained in:
2025-04-21 17:10:11 +08:00
parent 5f85aed486
commit a7fc676b82
24 changed files with 1583 additions and 58 deletions

View File

@@ -14,7 +14,9 @@ namespace CapMachine.Wpf.MapperProfile
{
public CanLinRWConfigProfile()
{
CreateMap<CanLinRWConfig, CanLinRWConfigDto>().ReverseMap();
CreateMap<CanLinRWConfig, CanLinRWConfigDto>()
.ForMember(dest => dest.LogicRuleDto, opt => opt.MapFrom(src => src.LogicRule))
.ReverseMap();
}
}
}

View File

@@ -0,0 +1,20 @@
using AutoMapper;
using CapMachine.Model;
using CapMachine.Wpf.Dtos;
using CapMachine.Wpf.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.MapperProfile
{
public class LogicRuleProfile : Profile
{
public LogicRuleProfile()
{
CreateMap<LogicRuleDto, LogicRule>().ReverseMap();
}
}
}