增加CAN FD和规则的功能
This commit is contained in:
19
CapMachine.Wpf/MapperProfile/CANFdConfigExdProfile.cs
Normal file
19
CapMachine.Wpf/MapperProfile/CANFdConfigExdProfile.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using AutoMapper;
|
||||
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 CANFdConfigExdProfile : Profile
|
||||
{
|
||||
public CANFdConfigExdProfile()
|
||||
{
|
||||
CreateMap<CANFdConfigExd, CANFdConfigExdDto>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
19
CapMachine.Wpf/MapperProfile/LogicRuleProfile.cs
Normal file
19
CapMachine.Wpf/MapperProfile/LogicRuleProfile.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using AutoMapper;
|
||||
using CapMachine.Model;
|
||||
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 LogicRuleProfile : Profile
|
||||
{
|
||||
public LogicRuleProfile()
|
||||
{
|
||||
CreateMap<LogicRuleDto, LogicRule>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user