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