From 1390642e0a1882d4b9250b0ac16f4faae4e2cca3 Mon Sep 17 00:00:00 2001 From: rowell_m_soriano Date: Tue, 20 Jan 2026 13:29:31 +0800 Subject: [PATCH] Extension on service for command time out --- CPRNIMS.WebApi/Common/ServiceExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CPRNIMS.WebApi/Common/ServiceExtensions.cs b/CPRNIMS.WebApi/Common/ServiceExtensions.cs index e9674ce..939f5ee 100644 --- a/CPRNIMS.WebApi/Common/ServiceExtensions.cs +++ b/CPRNIMS.WebApi/Common/ServiceExtensions.cs @@ -86,21 +86,21 @@ namespace CPRNIMS.WebApi.Common options.UseSqlServer(defaultConn, sql => { sql.EnableRetryOnFailure(5, TimeSpan.FromHours(2), null); - sql.CommandTimeout(2); + sql.CommandTimeout(20); })); services.AddDbContext(options => options.UseSqlServer(localConn, sql => { sql.EnableRetryOnFailure(5, TimeSpan.FromHours(2), null); - sql.CommandTimeout(2); + sql.CommandTimeout(20); })); services.AddDbContext(options => options.UseSqlServer(defaultConn, sql => { sql.EnableRetryOnFailure(5, TimeSpan.FromHours(2), null); - sql.CommandTimeout(2); + sql.CommandTimeout(20); })); }