sqlsugar 部分代码注释

usertest
cjy 3 months ago
parent 9e9157dd7e
commit b94eaa9d79

@ -87,16 +87,16 @@ public static class SqlsugarInstall
//} //}
var httpContextAccessor = services.GetService<IHttpContextAccessor>(); var httpContextAccessor = services.GetService<IHttpContextAccessor>();
var user = services.GetService<IUser>(); var user = services.GetService<IUser>();
if (user.IsNullOrEmpty()) //if (user.IsNullOrEmpty())
{ //{
user = new AspNetUser(httpContextAccessor) // user = new AspNetUser(httpContextAccessor)
{ // {
UserId = "1288018625843826688", // UserId = "1288018625843826688",
TenantId = "1288018625843826688", // TenantId = "1288018625843826688",
CompanyId = "1288018625843826688", // CompanyId = "1288018625843826688",
OrgId = 1288018625843826688 // OrgId = 1288018625843826688
}; // };
} //}
//全局上下文生效 //全局上下文生效
SqlSugarScope sqlSugar = new SqlSugarScope(connectConfigList, SqlSugarScope sqlSugar = new SqlSugarScope(connectConfigList,

Loading…
Cancel
Save