From af354cfaf523e8f0dfa8c5e39c560f31b8740850 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 16 Jan 2023 15:36:21 +0800 Subject: [PATCH] Update nuget --- Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs b/Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs index f230dec6e..dba9d5581 100644 --- a/Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs +++ b/Src/Asp.Net/SqlSugar/Infrastructure/ContextMethods.cs @@ -506,7 +506,9 @@ namespace SqlSugar private static bool IsArrayItem(Dictionary readerValues, PropertyInfo item) { - return item.PropertyType.IsArray && readerValues.Any(y => y.Key.EqualCase(item.Name)) && readerValues.FirstOrDefault(y => y.Key.EqualCase(item.Name)).Value is string; + var isArray= item.PropertyType.IsArray && readerValues.Any(y => y.Key.EqualCase(item.Name)) && readerValues.FirstOrDefault(y => y.Key.EqualCase(item.Name)).Value is string; + var isListItem = item.PropertyType.IsIn(typeof(List), typeof(List), typeof(List), typeof(List), typeof(List)) && readerValues.Any(y => y.Key.EqualCase(item.Name)) && readerValues.FirstOrDefault(y => y.Key.EqualCase(item.Name)).Value is string; + return isArray || isListItem; } private static bool IsJsonList(Dictionary readerValues, PropertyInfo item)