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

View File

@@ -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");

View File

@@ -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; }
}
}