diff --git a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs index c4547a0ad..310c2f339 100644 --- a/Src/Asp.Net/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.Net/SqlSugar/SqlSugarClient.cs @@ -750,7 +750,7 @@ namespace SqlSugar { var attr = typeof(T).GetCustomAttribute(); if (attr == null) - return this.GetConnection(this.CurrentConnectionConfig.ConfigId); + return this.GetConnectionScope(this.CurrentConnectionConfig.ConfigId); var configId = attr.configId; return this.GetConnectionScope(configId); }