Browse Source

Update demo

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

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

@ -63,8 +63,10 @@ namespace OrmTest
//There are many methods to under db.ado //There are many methods to under db.ado
var list= db.Ado.SqlQuery<Order>("select * from [order] "); var list = db.Ado.SqlQuery<Order>("select * from [order] ");
var intValue=db.Ado.SqlQuerySingle<int>("select 1"); 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"); db.Ado.ExecuteCommand("delete [order] where id>1000");
db.SqlQueryable<Custom>(@"select * db.SqlQueryable<Custom>(@"select *

Loading…
Cancel
Save