mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
update custom database
This commit is contained in:
parent
613eb5275b
commit
88a4ecee06
@ -125,10 +125,6 @@
|
|||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\SqlSugar.MySqlConnector\SqlSugar.MySqlConnector.csproj">
|
|
||||||
<Project>{d131ee06-bad4-4b80-b7de-d6f539087644}</Project>
|
|
||||||
<Name>SqlSugar.MySqlConnector</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\SqlSugar\SqlSugar.csproj">
|
<ProjectReference Include="..\SqlSugar\SqlSugar.csproj">
|
||||||
<Project>{489bb790-226c-4fad-8d1e-51d72a7ff8e5}</Project>
|
<Project>{489bb790-226c-4fad-8d1e-51d72a7ff8e5}</Project>
|
||||||
<Name>SqlSugar</Name>
|
<Name>SqlSugar</Name>
|
||||||
|
@ -497,7 +497,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var key = "Assembly_"+ CustomTypeName+assembly.GetHashCode();
|
var key = "Assembly_"+ CustomTypeName+assembly.GetHashCode();
|
||||||
var newAssembly = new ReflectionInoCacheService().GetOrCreate<Assembly>(key, () => {
|
var newAssembly = new ReflectionInoCacheService().GetOrCreate<Assembly>(key, () => {
|
||||||
return Assembly.LoadFrom(CustomTypeName + ".dll");
|
try
|
||||||
|
{
|
||||||
|
return Assembly.LoadFrom(CustomTypeName + ".dll");
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
var message = "Not Found " + CustomTypeName + ".dll";
|
||||||
|
Check.Exception(true, message);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Type type = newAssembly.GetType(className);
|
Type type = newAssembly.GetType(className);
|
||||||
return type;
|
return type;
|
||||||
|
Loading…
Reference in New Issue
Block a user