mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
【调整】sqlsugar配置文件设置【IsAutoCloseConnection=true】,防止mysql因线程安全问题导致的请求未关闭。
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
//设置参数
|
||||
|
||||
Reference in New Issue
Block a user