mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Update GetConnectionScopeWithAttr
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user