From 5c818e6610ca080e4bc4767f1a8931d7fde09a97 Mon Sep 17 00:00:00 2001 From: Mikhail Kuznetsov Date: Fri, 6 Oct 2023 17:09:25 +1000 Subject: [PATCH] =?UTF-8?q?feat(espptemplatesync):=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=B0=20Man?= =?UTF-8?q?ager=20=D0=B0=D0=B4=D0=B0=D0=BF=D1=82=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=20=D0=BD=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D1=83=20=D1=81=20RobotConfigurationService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implementations/TemplateService.cs | 4 +- PARR.EsppTemplateSync/Domain/EsppTemplate.cs | 8 +-- PARR.EsppTemplateSync/Services/Manager.cs | 16 +++--- .../Services/ParserService.cs | 50 +++++++++++++++++++ 4 files changed, 62 insertions(+), 16 deletions(-) diff --git a/PARR.DAL/Services/Implementations/TemplateService.cs b/PARR.DAL/Services/Implementations/TemplateService.cs index dd0a9c3a..34b7ef45 100644 --- a/PARR.DAL/Services/Implementations/TemplateService.cs +++ b/PARR.DAL/Services/Implementations/TemplateService.cs @@ -25,7 +25,9 @@ namespace PARR.DAL.Services.Implementations public async Task GetTemplateByNameAsync(string name) { - return await GetWithIncludes().FirstOrDefaultAsync(t => t.Name == name); + return await GetWithIncludes() + .Include(t=>t.RobotConfigurations) + .FirstOrDefaultAsync(t => t.Name == name); } public IQueryable