Добавлен префикс таблицам первой структуры базы
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using AutoMapper;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Models.V1;
|
||||
|
||||
namespace PARR.API.MappingProfiles
|
||||
{
|
||||
@@ -7,7 +7,7 @@ namespace PARR.API.MappingProfiles
|
||||
{
|
||||
public DomainToDomainProfile()
|
||||
{
|
||||
CreateMap<Job, Job>();
|
||||
CreateMap<V1_Job, V1_Job>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using AutoMapper;
|
||||
using PARR.API.Contracts.V1.Responses;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Models.V1;
|
||||
|
||||
namespace PARR.API.MappingProfiles
|
||||
{
|
||||
@@ -9,23 +9,23 @@ namespace PARR.API.MappingProfiles
|
||||
public DomainToResponseProfile()
|
||||
{
|
||||
// --- Job ---
|
||||
CreateMap<Job, JobBaseResponse>()
|
||||
.Include<Job, JobGetAllResponse>()
|
||||
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<Job, JobGetAllResponse>();
|
||||
CreateMap<V1_Job, JobGetAllResponse>();
|
||||
|
||||
CreateMap<List<Job>, JobMinResponse>()
|
||||
CreateMap<List<V1_Job>, JobMinResponse>()
|
||||
.ForMember(d => d.Scheduled, o => o.MapFrom(s => s));
|
||||
|
||||
CreateMap<Job, JobMinScheduleResponse>()
|
||||
CreateMap<V1_Job, JobMinScheduleResponse>()
|
||||
.ForMember(d => d.Script, o => o.MapFrom(s => s.ScriptName));
|
||||
// === Job ===
|
||||
|
||||
|
||||
|
||||
CreateMap<JobMode, JobModeResponse>();
|
||||
CreateMap<V1_JobMode, JobModeResponse>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user