From a54ff44080232966283375bd823448f2637b88e8 Mon Sep 17 00:00:00 2001
From: sunkaixuan <610262374@qq.com>
Date: Thu, 11 Jul 2024 11:55:42 +0800
Subject: [PATCH] Update demo
---
Src/Asp.NetCore2/KdbndpTest/KdbndpTest.csproj | 5 +++++
Src/Asp.NetCore2/KdbndpTest/SqlServerDemo/SqlServer.cs | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/Src/Asp.NetCore2/KdbndpTest/KdbndpTest.csproj b/Src/Asp.NetCore2/KdbndpTest/KdbndpTest.csproj
index b44ea2f45..37adfb590 100644
--- a/Src/Asp.NetCore2/KdbndpTest/KdbndpTest.csproj
+++ b/Src/Asp.NetCore2/KdbndpTest/KdbndpTest.csproj
@@ -13,4 +13,9 @@
+
+
+
+
+
diff --git a/Src/Asp.NetCore2/KdbndpTest/SqlServerDemo/SqlServer.cs b/Src/Asp.NetCore2/KdbndpTest/SqlServerDemo/SqlServer.cs
index 1cbb5ec0e..555503576 100644
--- a/Src/Asp.NetCore2/KdbndpTest/SqlServerDemo/SqlServer.cs
+++ b/Src/Asp.NetCore2/KdbndpTest/SqlServerDemo/SqlServer.cs
@@ -36,7 +36,7 @@ namespace KdbndpTest.SqlServerDemo
}
var yyy = Db.Queryable().ToList();
- var xxx=Db.Ado.GetDataTable(" select sys_class.relname,sys_attribute.attname as colname from \r\n\t sys_constraint inner join sys_class \r\n\t on sys_constraint.conrelid = sys_class.oid \r\n\t inner join sys_attribute on sys_attribute.attrelid = sys_class.oid \r\n\t and sys_attribute.attnum = sys_constraint.conkey{1}\r\n\t inner join sys_type on sys_type.oid = sys_attribute.atttypid\r\n\t where sys_constraint.contype='p'");
+ var xxx=Db.Ado.GetDataTable("select 1 as id");
Db.CodeFirst.InitTables();
Db.Insertable(new Order()