diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs index 52150017b..4e1095d4d 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs @@ -636,6 +636,10 @@ namespace SqlSugar } }); Type type = newAssembly.GetType(className); + if (type == null) + { + type= assembly.GetType(className); + } return type; }