This commit is contained in:
sunkaixuan 2017-06-04 10:24:07 +08:00
parent 15dc86ea1b
commit 532c0259a6

View File

@ -22,8 +22,8 @@ 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();
string value = "'jack';drop table Student";
var list = db.Queryable<Student>().Where("name=@name", new { name = value }).ToList();
//Nothing happened
}