feat: Из dal перенесены все модели в Domain. Из dal переименованы service в repository, вынесены в Core.
This commit is contained in:
@@ -11,7 +11,7 @@ esppImporter.Import();
|
||||
IHost host = Host.CreateDefaultBuilder(args)
|
||||
.ConfigureServices((hostContext, services) =>
|
||||
{
|
||||
services.InstallDalServices(hostContext.Configuration);
|
||||
services.AddDalServices(hostContext.Configuration);
|
||||
services.AddSingleton<ITemplatesInitializer, TemplatesInitializer>();
|
||||
|
||||
})
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces;
|
||||
using PARR.Core.Repositories.Interfaces;
|
||||
using PARR.Domain.Entities;
|
||||
|
||||
namespace PARR.MockData.Services
|
||||
{
|
||||
internal class TemplatesInitializer : ITemplatesInitializer
|
||||
{
|
||||
private readonly ILogger<TemplatesInitializer> logger;
|
||||
private readonly ITemplateService templateService;
|
||||
private readonly IProcessService processService;
|
||||
private readonly ISubprocessService subprocessService;
|
||||
private readonly ITnkService tnkService;
|
||||
private readonly ITemplateRepository templateService;
|
||||
private readonly IProcessRepository processService;
|
||||
private readonly ISubprocessRepository subprocessService;
|
||||
private readonly ITnkRepository tnkService;
|
||||
//private readonly IWorkService workService;
|
||||
|
||||
public TemplatesInitializer(
|
||||
ILogger<TemplatesInitializer> logger,
|
||||
ITemplateService templateService,
|
||||
IProcessService processService,
|
||||
ISubprocessService subprocessService,
|
||||
ITnkService tnkService
|
||||
ITemplateRepository templateService,
|
||||
IProcessRepository processService,
|
||||
ISubprocessRepository subprocessService,
|
||||
ITnkRepository tnkService
|
||||
//IWorkService workService
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user