mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-03-12 17:10:55 +08:00
update
4
动态操作.md
4
动态操作.md
@@ -4,9 +4,7 @@ FreeSql 提供 Where(sql)、GroupBy(sql)、OrderBy(sql)、ToList(sql) 等直接
|
||||
|
||||
**使用这些 API 时请务必注意SQL注入安全问题。**
|
||||
|
||||
在业务代码中如何防止注入?
|
||||
|
||||
不建议前端直接 POST SQL 到后端使用这些 API,而应该在后端做一层映射,例如:
|
||||
不建议前端直接 POST SQL 到后端使用它们,而应该在后端做一层映射,例如:
|
||||
|
||||
```csharp
|
||||
var whereMapping = new Dictionary<string, string>
|
||||
|
||||
Reference in New Issue
Block a user