From d2d0a10de983d89428d88774af41741f207179b0 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 30 Jun 2022 14:36:21 +0800 Subject: [PATCH] Update GetConnectionScopeWithAttr --- Src/Asp.Net/SqlSugar/SqlSugarClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }