From 158acea695fa36db548356c22e5118377b710051 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 11 May 2022 16:39:12 +0800 Subject: [PATCH] split table insert null error --- Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs b/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs index 22bd9ae57..d2fb6c00c 100644 --- a/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs +++ b/Src/Asp.Net/SqlSugar/IntegrationServices/SplitTableService.cs @@ -65,6 +65,10 @@ namespace SqlSugar } else { + if (entityValue == null) + { + return null; + } var value = splitColumn.PropertyInfo.GetValue(entityValue, null); if (value == null) {