mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
update custom db
This commit is contained in:
@@ -493,9 +493,13 @@ namespace SqlSugar
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Type GetCustomTypeByClass(string className)
|
internal static Type GetCustomTypeByClass(string className)
|
||||||
{
|
{
|
||||||
Type type = Assembly.LoadFrom(CustomTypeName+".dll").GetType(className);
|
var key = "Assembly_"+ CustomTypeName+assembly.GetHashCode();
|
||||||
|
var newAssembly = new ReflectionInoCacheService().GetOrCreate<Assembly>(key, () => {
|
||||||
|
return Assembly.LoadFrom(CustomTypeName + ".dll");
|
||||||
|
});
|
||||||
|
Type type = newAssembly.GetType(className);
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Reference in New Issue
Block a user