From 0d96ff4e0833d6a2813a969e1ae0a48f27eee497 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 27 三月 2023 14:24:05 +0800 Subject: [PATCH] 会员发送app后台消息 --- 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