mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 12:47:57 +08:00
Add demo
This commit is contained in:
parent
bb23883a7d
commit
82a0221c48
@ -77,6 +77,7 @@ namespace OrmTest
|
||||
var dt = new Dictionary<string, object>();
|
||||
dt.Add("id", 1);
|
||||
dt.Add("name", "abc");
|
||||
dt.Add("CustomId", null);
|
||||
dt.Add("createTime", DateTime.Now);
|
||||
var dtList = new List<Dictionary<string, object>>();
|
||||
dtList.Add(dt);
|
||||
|
@ -140,6 +140,12 @@ namespace OrmTest
|
||||
.AddSubList(it => it.TwoItem3)
|
||||
.ExecuteCommand();
|
||||
|
||||
|
||||
var dict = new Dictionary<string, object>();
|
||||
dict.Add("name", "1");
|
||||
dict.Add("Price", 1);
|
||||
dict.Add("CustomId", null);
|
||||
db.Insertable(dict).AS("Order").ExecuteCommand();
|
||||
Console.WriteLine("#### Insertable End ####");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user