Синхронизация данных АИХ ИТ с ПАРР
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using AutoMapper;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Models.AIHIT;
|
||||
using PARR.DAL.Models.V1;
|
||||
using System.Xml;
|
||||
@@ -18,7 +19,11 @@ namespace PARR.AIHIT.MappingProfiles
|
||||
.ForMember(d => d.WorkGroup, o => o.MapFrom(s => (s.Attributes!["РАБОЧАЯ_ГР_ОТВ_ЗА_ЭК"] != null) ? s.Attributes!["РАБОЧАЯ_ГР_ОТВ_ЗА_ЭК"]!.Value.Trim() : ""))
|
||||
.ForMember(d => d.Responsible, o => o.MapFrom(s => s.Attributes!["ОТВЕТСТВЕННЫЙ_ЗА_ЭК"]!.Value.Trim()));
|
||||
|
||||
CreateMap<Models.EK, RawDataEK>();
|
||||
CreateMap<RawDataEK, Host>()
|
||||
.ForMember(d => d.HostName, o => o.MapFrom(s => s.EKFindCode))//TODO Определить имя хоста по
|
||||
.ForMember(d => d.IP, o => o.MapFrom(s => s.IP))
|
||||
.ForMember(d => d.Status, o => o.MapFrom(s => s.Status))
|
||||
.ForMember(d => d.WorkGroup, o => o.MapFrom(s => s.WorkGroup));
|
||||
//CreateMap<PARR.DAL.Models.Host, PARR.DAL.Models.Host>()
|
||||
// .ForMember(d => d.HostName, o => o.MapFrom(s => s.HostName))
|
||||
// .ForMember(d => d.IP, o => o.MapFrom(s => s.IP))
|
||||
|
||||
Reference in New Issue
Block a user