From e85c72935ce044ea9668fe902dad4f13d8e9b555 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 12 Dec 2024 13:53:01 +0800 Subject: [PATCH] Update demo --- Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec | 2 +- Src/Asp.NetCore2/XuGuTest/Program.cs | 2 +- Src/Asp.NetCore2/XuGuTest/T_User2.cs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec index 80d7f11cf..8ee2d1977 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec @@ -2,7 +2,7 @@ SqlSugarCore - 5.1.4.171 + 5.1.4.172-preview01 sunkaixuan 果糖大数据科技 http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/Src/Asp.NetCore2/XuGuTest/Program.cs b/Src/Asp.NetCore2/XuGuTest/Program.cs index 8419a9478..44367c074 100644 --- a/Src/Asp.NetCore2/XuGuTest/Program.cs +++ b/Src/Asp.NetCore2/XuGuTest/Program.cs @@ -94,7 +94,7 @@ namespace XuguTest }).ExecuteCommand(); - db.Insertable(new T_User2() { number = 1 }).ExecuteCommand(); + db.Insertable(new T_User2() { number = 1, table="a" }).ExecuteCommand(); // var list0=db.Ado.GetDataTable("select * from MY_USER"); diff --git a/Src/Asp.NetCore2/XuGuTest/T_User2.cs b/Src/Asp.NetCore2/XuGuTest/T_User2.cs index ac8ff6ea5..6df885e22 100644 --- a/Src/Asp.NetCore2/XuGuTest/T_User2.cs +++ b/Src/Asp.NetCore2/XuGuTest/T_User2.cs @@ -6,10 +6,14 @@ using System.Threading.Tasks; namespace Data.Model { - [SqlSugar.SugarTable("T_User222")] + [SqlSugar.SugarTable("T_User2222")] public class T_User2 { + [SqlSugar.SugarColumn(IsPrimaryKey =true,IsIdentity =true)] + public int id { get; set; } [SqlSugar.SugarColumn(DefaultValue = "0", ColumnDescription = "aaa")] public int number { get; set; } + + public string table { get; set; } } }