Update GetConnectionScopeWithAttr

This commit is contained in:
sunkaixuan
2022-06-30 14:36:21 +08:00
parent 8a60b0f3cb
commit d2d0a10de9

View File

@@ -750,7 +750,7 @@ namespace SqlSugar
{
var attr = typeof(T).GetCustomAttribute<TenantAttribute>();
if (attr == null)
return this.GetConnection(this.CurrentConnectionConfig.ConfigId);
return this.GetConnectionScope(this.CurrentConnectionConfig.ConfigId);
var configId = attr.configId;
return this.GetConnectionScope(configId);
}