mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Update custom database
This commit is contained in:
@@ -419,6 +419,10 @@ namespace SqlSugar
|
||||
else
|
||||
{
|
||||
type = GetCustomTypeByClass(className + "`" + types.Length).MakeGenericType(types);
|
||||
if (type == null)
|
||||
{
|
||||
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types);
|
||||
}
|
||||
}
|
||||
Check.ArgumentNullException(type, string.Format(ErrorMessage.ObjNotExist, className));
|
||||
if (!typeCache.ContainsKey(cacheKey))
|
||||
@@ -441,6 +445,10 @@ namespace SqlSugar
|
||||
else
|
||||
{
|
||||
type = GetCustomTypeByClass(className + "`" + types.Length).MakeGenericType(types);
|
||||
if (type == null)
|
||||
{
|
||||
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types);
|
||||
}
|
||||
}
|
||||
var result = (Restult)Activator.CreateInstance(type, true);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user