|
|
@ -409,8 +409,15 @@ namespace SqlSugar |
|
|
|
else |
|
|
|
{ |
|
|
|
lock (typeCache) |
|
|
|
{ |
|
|
|
if (string.IsNullOrEmpty(CustomTypeName)) |
|
|
|
{ |
|
|
|
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
type = GetCustomTypeByClass(className + "`" + types.Length).MakeGenericType(types); |
|
|
|
} |
|
|
|
Check.ArgumentNullException(type, string.Format(ErrorMessage.ObjNotExist, className)); |
|
|
|
if (!typeCache.ContainsKey(cacheKey)) |
|
|
|
{ |
|
|
|