From 5f4a4cee9f6a80e200ba81d050da0ec5e1247656 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Thu, 29 Aug 2024 16:24:00 +0500 Subject: [PATCH] =?UTF-8?q?GtrWitsRepository.GetRangeAsync()=20=D1=83?= =?UTF-8?q?=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B8=D0=BB=20=D1=82=D0=B0=D0=B9?= =?UTF-8?q?=D0=BC=D0=B0=D1=83=D1=82=20=D0=B4=D0=BE=D0=BB=D0=B3=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudInfrastructure/Repository/GtrWitsRepository.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs b/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs index 22707146..3f2c1dfb 100644 --- a/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs +++ b/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs @@ -9,6 +9,7 @@ using AsbCloudDb.Model; using AsbCloudDb.Model.GTR; using Mapster; using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Caching.Memory; using System; using System.Collections.Concurrent; using System.Collections.Generic; @@ -106,6 +107,7 @@ public class GtrWitsRepository : IGtrRepository Min = group.Min(e => e.DateTime), Max = group.Max(e => e.DateTime) }); + db.Database.SetCommandTimeout(5*60); var range = await groupedQuery.FirstOrDefaultAsync(token); if (range is null)