From 3fc39f1653f5bd2ac10481e874694bb01f8a0b01 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 15 Dec 2022 20:49:37 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=BA=BA=E5=A4=A7=E9=87=91=E4=BB=93?= =?UTF-8?q?=20=20DbModeType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SqlSugar/Realization/Kdbndp/KdbndpSQLProvider.cs | 4 ++++ Src/Asp.NetCore2/SqlSugar/SqlSugar.csproj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/KdbndpSQLProvider.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/KdbndpSQLProvider.cs index 3d78952e3..5752df057 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/KdbndpSQLProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/KdbndpSQLProvider.cs @@ -73,6 +73,10 @@ namespace SqlSugar KdbndpCommand sqlCommand = new KdbndpCommand(sql, (KdbndpConnection)this.Connection); sqlCommand.CommandType = this.CommandType; sqlCommand.CommandTimeout = this.CommandTimeOut; + if (sqlCommand.CommandType == CommandType.StoredProcedure) + { + sqlCommand.DbModeType = DbMode.Oracle; + } if (this.Transaction != null) { sqlCommand.Transaction = (KdbndpTransaction)this.Transaction; diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugar.csproj b/Src/Asp.NetCore2/SqlSugar/SqlSugar.csproj index 43cdb5e04..2cd353048 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugar.csproj +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugar.csproj @@ -27,7 +27,7 @@ - +