From d1af79dd0bca930d94b2e75cedeb433fc6181a90 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 31 Aug 2023 23:10:00 +0800 Subject: [PATCH] Synchronization code --- Src/Asp.Net/SqlSugar/Utilities/DbExtensions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Utilities/DbExtensions.cs b/Src/Asp.Net/SqlSugar/Utilities/DbExtensions.cs index bbd4302a5..a89a19a05 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/DbExtensions.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/DbExtensions.cs @@ -79,6 +79,10 @@ namespace SqlSugar { throw new Exception($"{value} format error "); } + else if (value.IsContainsIn("//")&& (value.Length- value.Replace("/","").Length)>=4) + { + throw new Exception($"{value} format error "); + } else if (value.IsContainsIn("'") && (value.Length - value.Replace("'", "").Length) % 2 != 0) { throw new Exception($"{value} format error ");