From 470bbd86a357f417afcd57fc2ee27f8eb582b1cd Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 14 Mar 2024 13:43:58 +0800 Subject: [PATCH] Update pgsql arrar select dynamic --- Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs index 32351f118..42cd98b8e 100644 --- a/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs +++ b/Src/Asp.NetCore2/SqlSugar/Infrastructure/ContextMethods.cs @@ -484,6 +484,10 @@ namespace SqlSugar result.Add(name, DeserializeObject(json)); } } + else if (item.PropertyType?.IsArray==true&& readerValues?.Any(y => y.Key.EqualCase(item.Name))==true&& readerValues?.FirstOrDefault(y => y.Key.EqualCase(item.Name)).Value is Array value) + { + result.Add(name, value); + } else if (StaticConfig.EnableAot && item.PropertyType == typeof(Type)) { //No Add