refactor(all): Удалены из БД таблицы V1
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using AutoMapper;
|
||||
using PARR.DAL.Models.V1;
|
||||
|
||||
namespace PARR.API.MappingProfiles
|
||||
{
|
||||
@@ -7,7 +6,7 @@ namespace PARR.API.MappingProfiles
|
||||
{
|
||||
public DomainToDomainProfile()
|
||||
{
|
||||
CreateMap<V1_Job, V1_Job>();
|
||||
//CreateMap<V1_Job, V1_Job>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ using PARR.API.MappingProfiles.Resolvers;
|
||||
using PARR.BLL.Helpers;
|
||||
using PARR.DAL.DomainModels;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Models.V1;
|
||||
|
||||
namespace PARR.API.MappingProfiles
|
||||
{
|
||||
@@ -12,23 +11,6 @@ namespace PARR.API.MappingProfiles
|
||||
{
|
||||
public DomainToResponseProfile()
|
||||
{
|
||||
// --- Job ---
|
||||
CreateMap<V1_Job, JobBaseResponse>()
|
||||
.Include<V1_Job, JobGetAllResponse>()
|
||||
.ForMember(d => d.FrequencyMinute, o => o.MapFrom(s => s.Frequency))
|
||||
.ForMember(d => d.Script, o => o.MapFrom(s => s.ScriptName));
|
||||
|
||||
CreateMap<V1_Job, JobGetAllResponse>();
|
||||
|
||||
CreateMap<List<V1_Job>, JobMinResponse>()
|
||||
.ForMember(d => d.Scheduled, o => o.MapFrom(s => s));
|
||||
|
||||
CreateMap<V1_Job, JobMinScheduleResponse>()
|
||||
.ForMember(d => d.Script, o => o.MapFrom(s => s.ScriptName));
|
||||
// === Job ===
|
||||
|
||||
CreateMap<V1_JobMode, JobModeResponse>();
|
||||
|
||||
// --- Template ---
|
||||
CreateMap<Template, TemplateResponse>()
|
||||
.ForMember(d => d.Work, o => o.MapFrom(s => s.ApplicationsInWork!.Work))
|
||||
|
||||
Reference in New Issue
Block a user