From bc33c7a6123d5bbd7058e00fa6b7f766ceae12d7 Mon Sep 17 00:00:00 2001 From: "guoshun.du" Date: Wed, 19 Jul 2023 19:51:22 +0800 Subject: [PATCH] =?UTF-8?q?*=E4=BF=AE=E5=A4=8DODBC=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OceanBase/OceanBaseForOracleProvider.cs | 5 ++--- .../SqlSugar.OceanBaseForOracleCore.csproj | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/OceanBase/OceanBaseForOracleProvider.cs b/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/OceanBase/OceanBaseForOracleProvider.cs index 498961b44..656a2b368 100644 --- a/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/OceanBase/OceanBaseForOracleProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/OceanBase/OceanBaseForOracleProvider.cs @@ -206,11 +206,10 @@ namespace SqlSugar.OceanBaseForOracle //通过正则匹配,为顺序输出,相同也会重复匹配 Regex parametersRegx = new Regex(reg); MatchCollection matches = parametersRegx.Matches(sql); - for(int index = 0;index< parameters.Length; index++) + foreach (Match pMatch in matches) { - Match pMatch = matches[index]; SugarParameter mP = parameters.FirstOrDefault(m => m.ParameterName == pMatch.Value); - if (mP != null) + if (mP != null) { orderParameters.Add(mP); } diff --git a/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/SqlSugar.OceanBaseForOracleCore.csproj b/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/SqlSugar.OceanBaseForOracleCore.csproj index 47fcf47b3..39e2067da 100644 --- a/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/SqlSugar.OceanBaseForOracleCore.csproj +++ b/Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/SqlSugar.OceanBaseForOracleCore.csproj @@ -1,9 +1,8 @@ - net6.0 - enable - enable + netstandard2.1 + enable