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)