mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Update demo
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user