From 14820498f4667dd682f5b8c6b28bf8ea7b6b9e10 Mon Sep 17 00:00:00 2001 From: SUNKAIXUAN <610262374@qq.com> Date: Sat, 27 Mar 2021 12:20:27 +0800 Subject: [PATCH] Optimized code --- Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs b/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs index 2f70bd7ae..a986242f8 100644 --- a/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs +++ b/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs @@ -9,7 +9,7 @@ namespace SqlSugar public class InstanceFactory { - static Assembly assembly = Assembly.Load(UtilConstants.AssemblyName); + static Assembly assembly = Assembly.GetExecutingAssembly(); static Dictionary typeCache = new Dictionary(); public static bool NoCache = false;