Корректировка моделей Host, Template
This commit is contained in:
@@ -21,10 +21,11 @@ namespace PARR.AIHIT.MappingProfiles
|
||||
.ForMember(d => d.Responsible, o => o.MapFrom(s => s.Attributes!["ОТВЕТСТВЕННЫЙ_ЗА_ЭК"]!.Value.Trim()));
|
||||
|
||||
CreateMap<RawDataEK, Host>()
|
||||
.ForMember(d => d.HostName, o => o.MapFrom(s => s.EKFindCode))//TODO Определить имя хоста по
|
||||
.ForMember(d => d.Ek, 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));
|
||||
.ForMember(d => d.WorkGroup, o => o.MapFrom(s => s.WorkGroup))
|
||||
.ForMember(d => d.ResponseArea, o => o.MapFrom(s => s.ResponseArea));
|
||||
//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))
|
||||
|
||||
@@ -11,14 +11,13 @@ namespace PARR.DAL.Models
|
||||
public Guid Id { get; set; }
|
||||
public DateTimeOffset DateCreated { get; set; }
|
||||
public DateTimeOffset? DateModified { get; set; }
|
||||
public string? HostName { get; set; }
|
||||
public string? Ek { get; set; }
|
||||
public required string IP { get; set; }
|
||||
//public string? RegionalEK { get; set; }
|
||||
//public string? LinkEK { get; set; }
|
||||
public string? Status { get; set; }
|
||||
public string? WorkGroup { get; set; }
|
||||
//public string? Responsible { get; set; }
|
||||
|
||||
public string? ResponseArea { get; set; }
|
||||
|
||||
|
||||
public ICollection<ApplicationInHost> ApplicationsInHosts { get; set; } = new HashSet<ApplicationInHost>();
|
||||
|
||||
@@ -20,31 +20,34 @@ namespace PARR.DAL.Models
|
||||
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
//??? Рабочая группа
|
||||
//Рабочая группа из Host
|
||||
public required string WorkGroup { get; set; }
|
||||
|
||||
// settings из Work
|
||||
public required string ShortDescription { get; set; }
|
||||
|
||||
//settings ? регламентная работа
|
||||
//settings регламентная работа. не меняется
|
||||
public required string Category { get; set; }
|
||||
|
||||
// ДВС, ??
|
||||
// из Host
|
||||
public required string ResponseArea { get; set; }
|
||||
|
||||
//works ??
|
||||
public required string Duration { get; set; }
|
||||
//works
|
||||
public required string EsppDuration { get; set; }
|
||||
//works
|
||||
public required string EsppStartAt { get; set; }
|
||||
|
||||
//public required string EK { get; set; }
|
||||
|
||||
// settings
|
||||
// settings. Возможно руководитель повыше
|
||||
public required string Initiator { get; set; }
|
||||
|
||||
// settings из Work
|
||||
public required string FullDescription { get; set; }
|
||||
|
||||
// settings
|
||||
// settings
|
||||
public required string ClosingCode { get; set; }
|
||||
|
||||
// settings
|
||||
// settings из Work
|
||||
public required string Solution { get; set; }
|
||||
|
||||
//public required string Process { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user