mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 04:35:29 +08:00
Update demo
This commit is contained in:
parent
4f08f460e4
commit
5b2346aca5
@ -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 ####");
|
||||
}
|
||||
|
@ -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 ####");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user