Browse Source

update custom database

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

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

@ -410,7 +410,14 @@ namespace SqlSugar
{
lock (typeCache)
{
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types);
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