diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/Oracle/OracleProvider.cs b/Src/Asp.NetCore2/SqlSugar/Realization/Oracle/OracleProvider.cs index 693fa679d..c8f87586e 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/Oracle/OracleProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/Oracle/OracleProvider.cs @@ -129,7 +129,7 @@ namespace SqlSugar { foreach (var Parameter in parameters.OrderByDescending(x=>x.ParameterName?.Length)) { - if (Parameter.ParameterName != null && Parameter.ParameterName.ToLower().IsContainsIn(KeyWord)) + if (Parameter.ParameterName != null && Parameter.ParameterName.ToLower().IsContainsStartWithIn(KeyWord)) { if (parameters.Count(it => it.ParameterName.StartsWith(Parameter.ParameterName)) == 1) { diff --git a/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs b/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs index 975f0aa97..e3fcf3f07 100644 --- a/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs +++ b/Src/Asp.NetCore2/SqlSugar/Utilities/ValidateExtensions.cs @@ -26,6 +26,10 @@ namespace SqlSugar { return inValues.Any(it => thisValue.Contains(it)); } + public static bool IsContainsStartWithIn(this string thisValue, params string[] inValues) + { + return inValues.Any(it => thisValue.StartsWith(it)); + } public static bool IsNullOrEmpty(this object thisValue) {