Browse Source

Update demo

pull/8/head
sunkaixuna 3 years ago
parent
commit
8f869b2d0a
  1. 2
      Src/Asp.Net/SqlServerTest/Demo/Demo7_Ado.cs

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

@ -64,6 +64,8 @@ namespace OrmTest
//There are many methods to under db.ado
var list = db.Ado.SqlQuery<Order>("select * from [order] ");
var list2 = db.Ado.SqlQuery<Order, Order>("select * from [order] where 1=2;select * from [order] ");
var list3 = db.Ado.SqlQuery<int>(" delete from [order] where 2=15 ");
var intValue = db.Ado.SqlQuerySingle<int>("select 1");
db.Ado.ExecuteCommand("delete [order] where id>1000");

Loading…
Cancel
Save