|
|
|
@ -85,8 +85,8 @@ public static class SqlsugarInstall
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
//}
|
|
|
|
|
var httpContextAccessor = services.GetService<IHttpContextAccessor>();
|
|
|
|
|
var user = services.GetService<IUser>();
|
|
|
|
|
//var httpContextAccessor = services.GetService<IHttpContextAccessor>();
|
|
|
|
|
//var user = services.GetService<IUser>();
|
|
|
|
|
//if (user.IsNullOrEmpty())
|
|
|
|
|
//{
|
|
|
|
|
// user = new AspNetUser(httpContextAccessor)
|
|
|
|
@ -110,7 +110,7 @@ public static class SqlsugarInstall
|
|
|
|
|
var dbProvider = db.GetConnectionScope((string)c.ConfigId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// var user = services.GetService<IUser>();
|
|
|
|
|
var user = services.GetService<IUser>();
|
|
|
|
|
//单例参数配置,所有上下文生效
|
|
|
|
|
dbProvider.Ado.CommandTimeOut = 30;
|
|
|
|
|
dbProvider.Aop.OnLogExecuting = (sql, pars) =>
|
|
|
|
|