逻辑规则的初步增加工能:
1)规则的界面的增删改查 2)规则服务的初步测试,目前测试是OK的
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
20
CapMachine.Wpf/MapperProfile/LogicRuleProfile.cs
Normal file
20
CapMachine.Wpf/MapperProfile/LogicRuleProfile.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user