From 56bff044cb7e469f6c98faa789d7b405341d4ac5 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 10 May 2025 17:49:55 +0800 Subject: [PATCH] StorageableByObject.WhereColumns --- .../SaveableProvider/StorageableMethodInfo.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/SaveableProvider/StorageableMethodInfo.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/SaveableProvider/StorageableMethodInfo.cs index 559718d05..b45c971d2 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/SaveableProvider/StorageableMethodInfo.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/SaveableProvider/StorageableMethodInfo.cs @@ -89,6 +89,19 @@ namespace SqlSugar result.Method = method; return result; } + + public StorageableSplitTableMethodInfo WhereColumns(string[] strings) + { + object objectValue = null; + MethodInfo method = GetSaveMethod(ref objectValue); + if (method == null) return new StorageableSplitTableMethodInfo(null); + method = objectValue.GetType().GetMyMethod("WhereColumns", 1, typeof(string[])); + objectValue = method.Invoke(objectValue, new object[] { strings }); + StorageableSplitTableMethodInfo result = new StorageableSplitTableMethodInfo(null); + result.ObjectValue = objectValue; + result.Method = method; + return result; + } } public class StorageableAsMethodInfo