Browse Source

Update GetConnectionScopeWithAttr

pull/20/head
sunkaixuan 2 years ago
parent
commit
d2d0a10de9
  1. 2
      Src/Asp.Net/SqlSugar/SqlSugarClient.cs

2
Src/Asp.Net/SqlSugar/SqlSugarClient.cs

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

Loading…
Cancel
Save