From 55a327e5366107e0e80b707fdb08279705573653 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 26 Oct 2023 20:22:56 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Infrastructure/InstanceFactory.cs | 12 ++++++------ .../SqlSugar/Infrastructure/InstanceFactory.cs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs b/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs index bff83cd88..adc8b96d1 100644 --- a/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs +++ b/Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs @@ -650,15 +650,15 @@ namespace SqlSugar { if (IsWebFrom) { - string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + CustomDllName + ".dll").Replace("file:\\", ""); + string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + customDllName + ".dll").Replace("file:\\", ""); return Assembly.LoadFrom(newpath); } - return Assembly.LoadFrom(CustomDllName + ".dll"); + return Assembly.LoadFrom(customDllName + ".dll"); } } catch { - var message = "Not Found " + CustomDllName + ".dll"; + var message = "Not Found " + customDllName + ".dll"; Check.Exception(true, message); return null; } @@ -705,15 +705,15 @@ namespace SqlSugar { if (IsWebFrom) { - string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + CustomDllName + ".dll").Replace("file:\\", ""); + string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + customDllName + ".dll").Replace("file:\\", ""); return Assembly.LoadFrom(newpath); } - return Assembly.LoadFrom(CustomDllName + ".dll"); + return Assembly.LoadFrom(customDllName + ".dll"); } } catch { - var message = "Not Found " + CustomDllName + ".dll"; + var message = "Not Found " + customDllName + ".dll"; Check.Exception(true, message); return null; } diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs index bff83cd88..adc8b96d1 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs @@ -650,15 +650,15 @@ namespace SqlSugar { if (IsWebFrom) { - string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + CustomDllName + ".dll").Replace("file:\\", ""); + string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + customDllName + ".dll").Replace("file:\\", ""); return Assembly.LoadFrom(newpath); } - return Assembly.LoadFrom(CustomDllName + ".dll"); + return Assembly.LoadFrom(customDllName + ".dll"); } } catch { - var message = "Not Found " + CustomDllName + ".dll"; + var message = "Not Found " + customDllName + ".dll"; Check.Exception(true, message); return null; } @@ -705,15 +705,15 @@ namespace SqlSugar { if (IsWebFrom) { - string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + CustomDllName + ".dll").Replace("file:\\", ""); + string newpath = (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + customDllName + ".dll").Replace("file:\\", ""); return Assembly.LoadFrom(newpath); } - return Assembly.LoadFrom(CustomDllName + ".dll"); + return Assembly.LoadFrom(customDllName + ".dll"); } } catch { - var message = "Not Found " + CustomDllName + ".dll"; + var message = "Not Found " + customDllName + ".dll"; Check.Exception(true, message); return null; }