Browse Source

Update Custom database

pull/14/head
sunkaixuan 3 years ago
parent
commit
e1ca66bdc4
  1. 13
      Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs

13
Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs

@ -484,7 +484,18 @@ namespace SqlSugar
{
lock (typeCache)
{
type = assembly.GetType(className);
if (string.IsNullOrEmpty(CustomDllName))
{
type = assembly.GetType(className);
}
else
{
type= GetCustomTypeByClass(className);
if (type == null)
{
type = assembly.GetType(className);
}
}
Check.ArgumentNullException(type, string.Format(ErrorMessage.ObjNotExist, className));
if (!typeCache.ContainsKey(className))
{

Loading…
Cancel
Save