Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -36,12 +36,12 @@ public static class ConfigureSqlSugarExtensions
|
||||
|
||||
services.AddSqlSugar(connectConfigList, client =>
|
||||
{
|
||||
//connectConfigList.ForEach(config =>
|
||||
//{
|
||||
// var db = ((SqlSugarScope)client).GetConnectionScope((string)config.ConfigId);
|
||||
connectConfigList.ForEach(config =>
|
||||
{
|
||||
var db = ((SqlSugarScope)client).GetConnectionScope((string)config.ConfigId);
|
||||
|
||||
// // 设置超时时间
|
||||
// db.Ado.CommandTimeOut = 30;
|
||||
// 设置超时时间
|
||||
db.Ado.CommandTimeOut = 30;
|
||||
//db.Aop.OnLogExecuted = (sql, pars) =>
|
||||
//{
|
||||
// var oldColor = Console.ForegroundColor;
|
||||
@@ -60,7 +60,7 @@ public static class ConfigureSqlSugarExtensions
|
||||
//{
|
||||
// Log.Error(UtilMethods.GetSqlString(db.CurrentConnectionConfig.DbType, ex.Sql, (SugarParameter[])ex.Parametres));
|
||||
//};
|
||||
//});
|
||||
});
|
||||
});
|
||||
services.AddConfigurableOptions<ConnectionStringsOptions>();
|
||||
services.AddConfigurableOptions<TenantOptions>();
|
||||
|
||||
Reference in New Issue
Block a user