From 34546bc7c9f2fc9524dee330aadfa55435ffdf46 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 16 Jun 2025 15:59:19 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=BA=BA=E5=A4=A7=E9=87=91=E4=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs index 2069345d7..9201a7928 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs @@ -99,6 +99,10 @@ namespace SqlSugar { get { + if (IsSqlServerModel()) + { + return "select table_name as name from information_schema.tables where table_type='VIEW' and lower(table_schema) ='" + GetSchema() + "' "; + } return @"select table_name as name from information_schema.views where lower(table_schema) ='" + GetSchema() + "' "; } }