Update demo

This commit is contained in:
sunkaixuan 2024-12-12 13:53:01 +08:00
parent 077d833d48
commit e85c72935c
3 changed files with 7 additions and 3 deletions
Src/Asp.NetCore2

View File

@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.171</version> <version>5.1.4.172-preview01</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

@ -94,7 +94,7 @@ namespace XuguTest
}).ExecuteCommand(); }).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"); // var list0=db.Ado.GetDataTable("select * from MY_USER");

View File

@ -6,10 +6,14 @@ using System.Threading.Tasks;
namespace Data.Model namespace Data.Model
{ {
[SqlSugar.SugarTable("T_User222")] [SqlSugar.SugarTable("T_User2222")]
public class T_User2 public class T_User2
{ {
[SqlSugar.SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
public int id { get; set; }
[SqlSugar.SugarColumn(DefaultValue = "0", ColumnDescription = "aaa")] [SqlSugar.SugarColumn(DefaultValue = "0", ColumnDescription = "aaa")]
public int number { get; set; } public int number { get; set; }
public string table { get; set; }
} }
} }