【调整】sqlsugar配置文件设置【IsAutoCloseConnection=true】,防止mysql因线程安全问题导致的请求未关闭。

This commit is contained in:
大灰灰
2022-09-20 20:29:23 +08:00
parent b86f2128f2
commit de73aff810

View File

@@ -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,
});
//设置参数