Update demo

This commit is contained in:
sunkaixuan 2023-02-10 15:44:15 +08:00
parent 4f08f460e4
commit 5b2346aca5
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ namespace OrmTest
//There are many methods to under db.ado
var list= db.Ado.SqlQuery<Order>("select * from \"ORDER\" ");
var intValue=db.Ado.SqlQuerySingle<int>("select 1");
db.Ado.ExecuteCommand("delete from \"ORDER\" where id>1000");
db.Ado.ExecuteCommand("delete from \"ORDER\" where id>@order",new { order=1});
//db.Ado.xxx
Console.WriteLine("#### Ado End ####");
}

View File

@ -50,7 +50,7 @@ namespace OrmTest
//There are many methods to under db.ado
var list= db.Ado.SqlQuery<Order>("select * from \"ORDER\"");
var intValue=db.Ado.SqlQuerySingle<int>("select 1 from dual");
db.Ado.ExecuteCommand("delete \"ORDER\" where id>1000");
db.Ado.ExecuteCommand("delete \"ORDER\" where id>@type",new { type=1});
//db.Ado.xxx
Console.WriteLine("#### Ado End ####");
}