Browse Source

Update demo

pull/31/head
sunkaixuan 2 years ago
parent
commit
5b2346aca5
  1. 2
      Src/Asp.Net/DmTest/Demo/Demo7_Ado.cs
  2. 2
      Src/Asp.Net/OracleTest/Demo/Demo7_Ado.cs

2
Src/Asp.Net/DmTest/Demo/Demo7_Ado.cs

@ -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 ####");
}

2
Src/Asp.Net/OracleTest/Demo/Demo7_Ado.cs

@ -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…
Cancel
Save