mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Add demo
This commit is contained in:
@@ -77,6 +77,7 @@ namespace OrmTest
|
|||||||
var dt = new Dictionary<string, object>();
|
var dt = new Dictionary<string, object>();
|
||||||
dt.Add("id", 1);
|
dt.Add("id", 1);
|
||||||
dt.Add("name", "abc");
|
dt.Add("name", "abc");
|
||||||
|
dt.Add("CustomId", null);
|
||||||
dt.Add("createTime", DateTime.Now);
|
dt.Add("createTime", DateTime.Now);
|
||||||
var dtList = new List<Dictionary<string, object>>();
|
var dtList = new List<Dictionary<string, object>>();
|
||||||
dtList.Add(dt);
|
dtList.Add(dt);
|
||||||
|
@@ -140,6 +140,12 @@ namespace OrmTest
|
|||||||
.AddSubList(it => it.TwoItem3)
|
.AddSubList(it => it.TwoItem3)
|
||||||
.ExecuteCommand();
|
.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 ####");
|
Console.WriteLine("#### Insertable End ####");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user