mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update json 2 sql ToCheckField
This commit is contained in:
@@ -76,6 +76,14 @@ 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 "))
|
||||
{
|
||||
Check.ExceptionEasy($"{value} format error ", value+ "不能存在 空格+【update drop 等】+空格 ");
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user