From 4046b585b64e81e797f6bf46d95b76b2d14f4a57 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 1 Sep 2025 11:46:51 +0800 Subject: [PATCH] Update Subquery.Having --- .../Subquery/SubqueryableN.cs | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/SubqueryableN.cs b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/SubqueryableN.cs index dc99b8295..dde45c139 100644 --- a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/SubqueryableN.cs +++ b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/SubqueryableN.cs @@ -9,6 +9,10 @@ namespace SqlSugar { } public class Subqueryable : Subqueryable where T1 : class, new() { + public Subqueryable Having(Func expression) + { + return this; + } public new Subqueryable AsWithAttr() { return this; @@ -76,6 +80,10 @@ namespace SqlSugar } public class Subqueryable : Subqueryable where T1 : class, new() { + public Subqueryable Having(Func expression) + { + return this; + } public new Subqueryable AsWithAttr() { return this; @@ -139,6 +147,10 @@ namespace SqlSugar } public class Subqueryable : Subqueryable where T1 : class, new() { + public Subqueryable Having(Func expression) + { + return this; + } public new Subqueryable AsWithAttr() { return this; @@ -198,6 +210,10 @@ namespace SqlSugar } public class Subqueryable : Subqueryable where T1 : class, new() { + public Subqueryable Having(Func expression) + { + return this; + } public string SelectStringJoin(Func expression, string separator) { return default(string); @@ -262,6 +278,10 @@ namespace SqlSugar } public class Subqueryable : Subqueryable where T1 : class, new() { + public Subqueryable Having(Func expression) + { + return this; + } public string SelectStringJoin(Func expression, string separator) { return default(string); @@ -322,6 +342,10 @@ namespace SqlSugar } public class Subqueryable : Subqueryable where T1 : class, new() { + public Subqueryable Having(Func expression) + { + return this; + } public new Subqueryable AsWithAttr() { return this; @@ -572,6 +596,10 @@ namespace SqlSugar { return this; } + public Subqueryable Having(Func expression) + { + return this; + } } public class Subqueryable : Subqueryable where T1 : class, new() { @@ -696,5 +724,9 @@ namespace SqlSugar { return this; } + public Subqueryable Having(Func expression) + { + return this; + } } }