mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 05:13:27 +08:00
-
This commit is contained in:
parent
967e4cb23b
commit
15dc86ea1b
@ -13,6 +13,21 @@ namespace OrmTest.Demo
|
||||
public class JoinSql : DemoBase
|
||||
{
|
||||
public static void Init()
|
||||
{
|
||||
Where();
|
||||
OrderBy();
|
||||
}
|
||||
|
||||
private static void Where()
|
||||
{
|
||||
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
|
||||
}
|
||||
|
||||
private static void OrderBy()
|
||||
{
|
||||
var db = GetInstance();
|
||||
//propertyName is valid
|
||||
|
Loading…
Reference in New Issue
Block a user