Browse Source

Update Json2sql ToCheckField

pull/40/head
sunkaixuan 1 year ago
parent
commit
06d282f802
  1. 9
      Src/Asp.Net/SqlSugar/Utilities/DbExtensions.cs

9
Src/Asp.Net/SqlSugar/Utilities/DbExtensions.cs

@ -76,6 +76,15 @@ namespace SqlSugar
{
throw new Exception($"{value} format error ");
}
else if (value.ToLower().Contains("/update/")
|| value.ToLower().Contains("/delete/")
|| value.ToLower().Contains("/drop/")
|| value.ToLower().Contains("/alert/")
|| value.ToLower().Contains("/create/")
|| value.ToLower().Contains("/insert/"))
{
Check.ExceptionEasy($"{value} format error ", value + "不能存在 /+【update drop 等】+/ ");
}
else if (value.ToLower().Contains(" update ")
|| value.ToLower().Contains(" delete ")
|| value.ToLower().Contains(" drop ")

Loading…
Cancel
Save