From f6923474ec9d4d32dd3cecce15912938fc38f32b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 3 Apr 2025 15:18:08 +0800 Subject: [PATCH] Add QueryableByObject.Select(+3) --- .../SqlSugar/Abstract/QueryableProvider/QueryMethodInfo.cs | 7 ++++++- Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryMethodInfo.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryMethodInfo.cs index 41d5c782c..f760439ff 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryMethodInfo.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryMethodInfo.cs @@ -164,7 +164,12 @@ namespace SqlSugar this.QueryableObj = method.Invoke(QueryableObj, new object[] { }); return this; } - + public QueryMethodInfo Select(string expShortName, List columns, params object[] args) + { + var method = QueryableObj.GetType().GetMyMethod("Select", 3, typeof(string), typeof(List), typeof(object[])); + this.QueryableObj = method.Invoke(QueryableObj, new object[] { expShortName,columns,args }); + return this; + } public QueryMethodInfo Select(List models) { var method = QueryableObj.GetType().GetMyMethod("Select", 1, typeof(List)); diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec index 25684344d..984cecc69 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec @@ -2,7 +2,7 @@ SqlSugarCore - 5.1.4.188 + 5.1.4.189-preview01 sunkaixuan 果糖大数据科技 http://www.apache.org/licenses/LICENSE-2.0.html