feat: Из dal перенесены все модели в Domain. Из dal переименованы service в repository, вынесены в Core.

This commit is contained in:
Mikhail Trubnikov
2026-04-30 10:35:31 +10:00
parent f1ea69da1f
commit eb78dfd6a8
356 changed files with 1817 additions and 1985 deletions

View File

@@ -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>();
})

View File

@@ -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
)
{