From 88719e46a2cd722eadfc7c02fb6cc88906be5a02 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 5 May 2025 09:12:33 +0800 Subject: [PATCH] Update InstanceFactory --- Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs index c80400bac..315063294 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/InstanceFactory.cs @@ -668,6 +668,10 @@ namespace SqlSugar type = assembly.GetType(className); } } + if (type == null) + { + type = GetCustomDbType(className, type); + } Check.ArgumentNullException(type, string.Format(ErrorMessage.ObjNotExist, className)); if (!typeCache.ContainsKey(className)) {