From de73aff810a7f5f46b44bbb818b4d3c228cdaa8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Tue, 20 Sep 2022 20:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B0=83=E6=95=B4=E3=80=91sqlsugar?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=AE=BE=E7=BD=AE=E3=80=90?= =?UTF-8?q?IsAutoCloseConnection=3Dtrue=E3=80=91=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2mysql=E5=9B=A0=E7=BA=BF=E7=A8=8B=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=AF=BC=E8=87=B4=E7=9A=84=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=9C=AA=E5=85=B3=E9=97=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Core/Config/SqlSugarSetup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CoreCms.Net.Core/Config/SqlSugarSetup.cs b/CoreCms.Net.Core/Config/SqlSugarSetup.cs index 3bd6e7d4..6cf727c0 100644 --- a/CoreCms.Net.Core/Config/SqlSugarSetup.cs +++ b/CoreCms.Net.Core/Config/SqlSugarSetup.cs @@ -38,8 +38,8 @@ namespace CoreCms.Net.Core.Config ConnectionString = AppSettingsConstVars.DbSqlConnection, //判断数据库类型 DbType = AppSettingsConstVars.DbDbType == IocDbType.MySql.ToString() ? IocDbType.MySql : IocDbType.SqlServer, - //是否开启自动关闭数据库连接-//不设成true要手动close - IsAutoCloseConnection = false, + //是否开启自动关闭数据库连接 + IsAutoCloseConnection = true, }); //设置参数