23 lines
569 B
C#
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();
|
|
}
|
|
}
|
|
}
|