mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Demo
This commit is contained in:
parent
15dc86ea1b
commit
532c0259a6
@ -22,9 +22,9 @@ namespace OrmTest.Demo
|
||||
{
|
||||
var db = GetInstance();
|
||||
//Parameterized processing
|
||||
string value = "1;drop table Student";
|
||||
var list = db.Queryable<Student>().Where("id=@id",new { id = value }).ToList();
|
||||
// Nothing happened
|
||||
string value = "'jack';drop table Student";
|
||||
var list = db.Queryable<Student>().Where("name=@name", new { name = value }).ToList();
|
||||
//Nothing happened
|
||||
}
|
||||
|
||||
private static void OrderBy()
|
||||
|
Loading…
Reference in New Issue
Block a user