From 65cccbfba0e211b51e15797867c488b6f1c688f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Fri, 15 Dec 2023 11:57:01 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Поправлен запрос в репозитории 2. Поправлен DbConxtext, удалено лишнее поле 3. Поправлена валидация. у ValidationResult добавлено название параметров --- AsbCloudDb/Model/AsbCloudDbContext.cs | 1 - AsbCloudInfrastructure/Repository/WellSectionPlanRepository.cs | 1 + .../Services/ProcessMaps/ProcessMapPlanService.cs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AsbCloudDb/Model/AsbCloudDbContext.cs b/AsbCloudDb/Model/AsbCloudDbContext.cs index 4b6e339f..9a8b6a05 100644 --- a/AsbCloudDb/Model/AsbCloudDbContext.cs +++ b/AsbCloudDb/Model/AsbCloudDbContext.cs @@ -89,7 +89,6 @@ namespace AsbCloudDb.Model public DbSet Manuals => Set(); public DbSet ManualDirectories => Set(); public DbSet Contacts => Set(); - public DbSet WellSectionPlans => Set(); public DbSet DrillTests => Set(); public AsbCloudDbContext() : base() diff --git a/AsbCloudInfrastructure/Repository/WellSectionPlanRepository.cs b/AsbCloudInfrastructure/Repository/WellSectionPlanRepository.cs index f50cd7a0..c9963838 100644 --- a/AsbCloudInfrastructure/Repository/WellSectionPlanRepository.cs +++ b/AsbCloudInfrastructure/Repository/WellSectionPlanRepository.cs @@ -64,6 +64,7 @@ public class WellSectionPlanRepository : CrudWellRelatedRepositoryBase : IProcessMapPlanService { new($"Конструкция секции: {wellSectionType?.Caption}; " + $"Интервал бурения от {processMapPlan.DepthStart} до {processMapPlan.DepthEnd} не совпадает с данными указанными на странице " + - $"Конструкция скважины / План") + $"Конструкция скважины / План", new[] { nameof(processMapPlan.DepthStart), nameof(processMapPlan.DepthEnd) }) }; return validationResult;