From 0c7e6deb5e426a53ce095ddff808168c26215d83 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 20 六月 2025 12:55:40 +0800
Subject: [PATCH] 提交
---
zhengcaioa/Model/zcweb/zcwebContext.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/zhengcaioa/Model/zcweb/zcwebContext.cs b/zhengcaioa/Model/zcweb/zcwebContext.cs
index 40074bb..64937e6 100644
--- a/zhengcaioa/Model/zcweb/zcwebContext.cs
+++ b/zhengcaioa/Model/zcweb/zcwebContext.cs
@@ -10,6 +10,7 @@
{
public zcwebContext()
{
+ this.Database.SetCommandTimeout(60);
}
public zcwebContext(DbContextOptions<zcwebContext> options)
@@ -25,7 +26,7 @@
if (!optionsBuilder.IsConfigured)
{
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
- optionsBuilder.UseSqlServer("Data Source=.;Initial Catalog=zcweb;User ID=sa;Password=123456");
+ optionsBuilder.UseSqlServer("Data Source=172.26.97.147;Initial Catalog=zcweb;User ID=sa;Password=Za20222812");
}
}
--
Gitblit v1.9.1