From 8f869b2d0aa3b5fa9ae1499510a5af00fef4a277 Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Tue, 14 Sep 2021 13:28:33 +0800 Subject: [PATCH] Update demo --- Src/Asp.Net/SqlServerTest/Demo/Demo7_Ado.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlServerTest/Demo/Demo7_Ado.cs b/Src/Asp.Net/SqlServerTest/Demo/Demo7_Ado.cs index e1342aa19..88b7b678a 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/Demo7_Ado.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/Demo7_Ado.cs @@ -63,8 +63,10 @@ namespace OrmTest //There are many methods to under db.ado - var list= db.Ado.SqlQuery("select * from [order] "); - var intValue=db.Ado.SqlQuerySingle("select 1"); + var list = db.Ado.SqlQuery("select * from [order] "); + var list2 = db.Ado.SqlQuery("select * from [order] where 1=2;select * from [order] "); + var list3 = db.Ado.SqlQuery(" delete from [order] where 2=15 "); + var intValue = db.Ado.SqlQuerySingle("select 1"); db.Ado.ExecuteCommand("delete [order] where id>1000"); db.SqlQueryable(@"select *