feat(dal,api): Удалены старые таблицы AppInWorks
This commit is contained in:
@@ -106,31 +106,6 @@ namespace PARR.API.MappingProfiles
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
CreateMap<Application, ApplicationResponse>()
|
||||
.ForMember(t => t.Type, o => o.MapFrom(s => s.ApplicationType));
|
||||
|
||||
CreateMap<ApplicationType, ApplicationTypeResponse>();
|
||||
|
||||
#region Host
|
||||
|
||||
CreateMap<DAL.Models.Host, HostBaseResponse>()
|
||||
.Include<DAL.Models.Host, HostTemplateResponse>()
|
||||
.Include<DAL.Models.Host, HostWithApplicationsResponse>()
|
||||
.ForMember(d => d.Status, o => o.MapFrom(s => s.EkStatus!.Name))
|
||||
.ForMember(d => d.EkStatus, o => o.MapFrom(s => s.EkStatus))
|
||||
.ForMember(d => d.ResponseArea, o => o.MapFrom(s => s.ResponseArea!.Name))
|
||||
.ForMember(d => d.WorkGroupName, o => o.MapFrom(s => s.WorkGroup!.Name))
|
||||
.ForMember(d => d.WorkGroup, o => o.MapFrom(s => s.WorkGroup))
|
||||
.ForMember(d => d.EkResponseArea, o => o.MapFrom(s => s.ResponseArea));
|
||||
|
||||
CreateMap<DAL.Models.Host, HostTemplateResponse>();
|
||||
|
||||
CreateMap<DAL.Models.Host, HostWithApplicationsResponse>()
|
||||
.ForMember(d => d.Applications, o => o.MapFrom(s => s.ApplicationsInHosts.Select(t => t.Application).OrderBy(t => t.Name)));
|
||||
|
||||
#endregion
|
||||
|
||||
#region Unit
|
||||
|
||||
CreateMap<Unit, UnitBaseResponse>();
|
||||
@@ -181,12 +156,6 @@ namespace PARR.API.MappingProfiles
|
||||
//));
|
||||
#endregion
|
||||
|
||||
#region WorkGroup
|
||||
|
||||
CreateMap<WorkGroup, WorkGroupResponse>();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Robot
|
||||
|
||||
CreateMap<RobotStatus, RobotStatusResponse>();
|
||||
@@ -423,29 +392,6 @@ namespace PARR.API.MappingProfiles
|
||||
|
||||
#endregion
|
||||
|
||||
//#region JobAutoControl
|
||||
|
||||
//CreateMap<JobAutoControl, JobAutoControlBaseResponse>()
|
||||
// .Include<JobAutoControl, JobAutoControlResponse>();
|
||||
|
||||
//CreateMap<JobAutoControl, JobAutoControlResponse>()
|
||||
// .ForMember(d => d.EkMasks, o => o.MapFrom(s => s.JobEkMasks.OrderBy(t => t.Name)))
|
||||
// .ForMember(d => d.EnabledEkStatuses, o => o.MapFrom(s => s.JobAutoControlInEkStatuses.Select(t => t.EkStatus).OrderBy(t => t.Name)))
|
||||
// .ForMember(d => d.WorkGroups, o => o.MapFrom(s => s.ApplicationsInWork!.WorkGroups.Select(t => t.WorkGroup).OrderBy(t => t.Name)));
|
||||
|
||||
|
||||
//#endregion
|
||||
|
||||
#region ResponseArea
|
||||
CreateMap<ResponseArea, ResponseAreaResponse>();
|
||||
#endregion
|
||||
|
||||
//CreateMap<JobEkMask, JobEkMaskResponse>();
|
||||
|
||||
|
||||
CreateMap<EkStatus, EkStatusResponse>();
|
||||
|
||||
|
||||
CreateMap<WeekendDay, WeekendResponse>();
|
||||
|
||||
#region TemplateHistory
|
||||
|
||||
Reference in New Issue
Block a user