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() .ForMember(dest => dest.LogicRuleDto, opt => opt.MapFrom(src => src.LogicRule)) .ReverseMap(); } } }