Browse Source

update custom database

pull/14/head
sunkaixuna 3 years ago
parent
commit
e92c8a1dc4
  1. 7
      Src/Asp.Net/SqlSugar/Infrastructure/InstanceFactory.cs

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

@ -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))
{

Loading…
Cancel
Save